2

I am trying to create a silent install for Balsamiq Mockups which appears to be created using Inno Setup compiler.

As part of the standard silent install it creates a desktop shortcut which I wish to prevent.

Does anyone know the relevant command line switch to prevent the desktop icon being created?

I have tried using /MERGETASKS="!desktopicon" but this does not work. Is there a way to list what Tasks and their variable names that are being run/used by the install process?

4

1 回答 1

2

要找出任务名称,请使用 , 运行安装程序/SAVEINF=path,以将其设置保存到.inf文件中。如果您检查了您感兴趣的任务,在安装过程中,您将在.inf文件中看到此指令:

Tasks=thetask

现在您有了任务名称,您可以使用 with /MERGETASKS


另一种方法是反编译安装程序以查看该[Tasks]部分。

您可以使用例如Inno Setup Unpacker


尽管该选项也可能没有任何关联的任务。

不幸的是这种情况(安装程序中没有任务复选框),甚至更多。

当你反编译安装程序时,你会看到它本身并没有创建快捷方式(所以这里没有 Inno Setup 开关有帮助)。该快捷方式可能是由Balsamiq_Mockups_AIR.exe安装程序使用-desktopShortcutswitch 执行创建的:

[Run]
Filename: "{tmp}\Balsamiq_Mockups_AIR.exe"; \
  Parameters: "-silent -desktopShortcut -programMenu"; \
  BeforeInstall: "UninstallPreviousVersion"
于 2017-06-15T12:24:51.270 回答