English 中文(简体)
宏观内部的全球变化
原标题:Set global variable from within macro

缩略语 当我从宏观内部获得一个全球变量时,我会遇到一个错误。

我的变式安装台是否真是全球性的? 我如何确定可变装置 从宏观或功能(如果在职能范围内可能的话)中推断出来?

var installDirectory

!macro IdentifyDir
   IfFileExists C:	est9.00 Version9 AbortInstall

   Version9:
      $installDirectory "C:	est9.00"
   AbortInstall:
      Abort
!macroend

也可以是Macro &/或功能在NSIS(或者在我刚刚使用推波/波)中恢复价值?

!macro IdentifyDir
   IfFileExists C:	est9.00 Version9 AbortInstall

   Version9:
      return "C:	est9.00"
   AbortInstall:
      Abort
!macroend

var installDir !insertmacro IdentifyDir # is that valid?
最佳回答
问题回答

暂无回答




相关问题
Correct place to install demostration projects?

With the new Windows 7 restrictions (well, new to Windows Vista anyways), we can no longer install demo projects to %ProgramFilesFolder%OurApplicationdemo since restricted users will not be able to ...

.deb package conffiles problem

I am distributing one of my applications using a .deb package, but have a problem relating to one of the files. The distribution includes a database file which is constantly updated by the app, on a ...

Closing an application using WiX

In creating my WiX installer I have run into an issue when trying to close an application before installing the upgrade. Below is an example of how I am attempting to do this. <util:...

VS 2005 Setup - HKCU

I am trying to fix an existing application that uses a Visual Studio 2005 setup project. We are requiring it to work on limited user accounts for XP, our app is written in C# for .Net 2.0. It writes ...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

configsource and installer

I have an project csproj, with app.config file, and logging Ent.Library section using configsource attribute. The logging section is in ahother file Configloggingconfiguration.config. I have a ...