inno-setup

Inno Setup: How to automatically run program after /verysilent install?

眉间皱痕 提交于 2020-12-31 19:54:01
问题 How to automatically run my program after performing a /verysilent install? I can automatically run my program after a normal install by using DisableFinishedPage=yes in the [Setup] section (that disables the finish page and will run the program immediately after install, without user intervention). However if I use the /verysilent parameter that won't work: my program installs but won't automatically run afterwards. Thanks in advance for any help. 回答1: Apparently it's working fine now. I

Inno Setup: How to automatically run program after /verysilent install?

我的未来我决定 提交于 2020-12-31 19:51:53
问题 How to automatically run my program after performing a /verysilent install? I can automatically run my program after a normal install by using DisableFinishedPage=yes in the [Setup] section (that disables the finish page and will run the program immediately after install, without user intervention). However if I use the /verysilent parameter that won't work: my program installs but won't automatically run afterwards. Thanks in advance for any help. 回答1: Apparently it's working fine now. I

Inno Setup: How to automatically run program after /verysilent install?

半腔热情 提交于 2020-12-31 19:50:31
问题 How to automatically run my program after performing a /verysilent install? I can automatically run my program after a normal install by using DisableFinishedPage=yes in the [Setup] section (that disables the finish page and will run the program immediately after install, without user intervention). However if I use the /verysilent parameter that won't work: my program installs but won't automatically run afterwards. Thanks in advance for any help. 回答1: Apparently it's working fine now. I

Inno Setup: How to automatically run program after /verysilent install?

 ̄綄美尐妖づ 提交于 2020-12-31 19:48:39
问题 How to automatically run my program after performing a /verysilent install? I can automatically run my program after a normal install by using DisableFinishedPage=yes in the [Setup] section (that disables the finish page and will run the program immediately after install, without user intervention). However if I use the /verysilent parameter that won't work: my program installs but won't automatically run afterwards. Thanks in advance for any help. 回答1: Apparently it's working fine now. I

Inno Setup: How to automatically run program after /verysilent install?

て烟熏妆下的殇ゞ 提交于 2020-12-31 19:46:10
问题 How to automatically run my program after performing a /verysilent install? I can automatically run my program after a normal install by using DisableFinishedPage=yes in the [Setup] section (that disables the finish page and will run the program immediately after install, without user intervention). However if I use the /verysilent parameter that won't work: my program installs but won't automatically run afterwards. Thanks in advance for any help. 回答1: Apparently it's working fine now. I

Inno Setup: How to automatically run program after /verysilent install?

那年仲夏 提交于 2020-12-31 19:44:10
问题 How to automatically run my program after performing a /verysilent install? I can automatically run my program after a normal install by using DisableFinishedPage=yes in the [Setup] section (that disables the finish page and will run the program immediately after install, without user intervention). However if I use the /verysilent parameter that won't work: my program installs but won't automatically run afterwards. Thanks in advance for any help. 回答1: Apparently it's working fine now. I

Write serial number to file using Inno Setup

泄露秘密 提交于 2020-12-31 10:42:59
问题 I am trying to get the following Inno Setup code to work: [Setup] UserInfoPage=yes [Code] function CheckSerial(Serial: String): Boolean; begin Result := true; SaveStringToFile('c:\Registration.txt', Serial, False); end; The code is extremely simple when the file path is known at UserInfoPage . However it becomes extraordinarily complex when I need to write this file next to my application. Neither: WizardDirValue(); nor ExpandConstant('{app}'); do work. The first one is empty when called too

How can I securely pass the certificate password to signtool.exe in Inno Setup?

梦想的初衷 提交于 2020-12-30 03:46:36
问题 How can I securely pass the password to signtool.exe ? Here's the code: [Setup] SignTool=mysigntool signtool.exe" sign /f <path_to_pfx_certificate> /p <certificate's_password> $f I know there's a method like GetSHA1OfString , but here I need the opposite. 回答1: If you are asking how to encrypt the password, it does not make sense. An encryption needs a key (aka a password). So you end up with another password, which you again need to store somewhere in plain text. It's a kind of a chicken or

Inno Setup: read source path from a registry on compile time

删除回忆录丶 提交于 2020-12-30 03:44:47
问题 Reading a registry value from the [Code] section is quite easy. But if I have to read the value of a registry (an installation path) to be used in the [Files] section in order to copy files from a source folder the the install/destination folder I tried: Source: "{reg:HKLM\SOFTWARE\MyApp,InstallDir|DefaultDirName}\*"; DestDir: "{app}\Mydestination"; AfterInstall: AfterInstallProc receiving the error "unknown filename prefix 'reg:'". Or is there a possibility to read a registry value at the

Loading DLL with dependencies in Inno Setup fails in uninstaller with “Cannot import DLL”, but works in the installer

浪子不回头ぞ 提交于 2020-12-30 03:39:06
问题 When I uninstall the program I get this error: Cannot import dll: <utf8>c:\TestProg\IsStart.dll What have I done wrong here? Can anybody help me to solve this problem? CheckO4TaskMngrSvcStopAndUninstall stops and deletes the O4TaskManager Service : Here's the code: [Files] Source: "IsStartServer.dll"; DestDir: "{tmp}"; DestName: IsStart.dll Source: "IsStartServer.dll"; DestDir: "{app}"; DestName: IsStart.dll Source: "sqlite3x86.dll"; DestDir: "{src}"; DestName: sqlite3.dll Source: "sqlite3x86