inno-setup

How to log file copying process in Inno Setup

≯℡__Kan透↙ 提交于 2020-05-12 05:47:12
问题 During the installation, I need to copy some files from folder to another, how can I be sure, that this copying process was successful? FileCopy(ExpandConstant('{src}\copy.txt'), ExpandConstant('{app}\test_success.txt'), false); Is there any possibility to log copying process during installation. SetupLogging does not provide any information about copying process during the installation Thank You in advance 回答1: Use Log function: function FileCopyLogged( const ExistingFile, NewFile: String;

How to log file copying process in Inno Setup

跟風遠走 提交于 2020-05-12 05:41:16
问题 During the installation, I need to copy some files from folder to another, how can I be sure, that this copying process was successful? FileCopy(ExpandConstant('{src}\copy.txt'), ExpandConstant('{app}\test_success.txt'), false); Is there any possibility to log copying process during installation. SetupLogging does not provide any information about copying process during the installation Thank You in advance 回答1: Use Log function: function FileCopyLogged( const ExistingFile, NewFile: String;

How to log file copying process in Inno Setup

為{幸葍}努か 提交于 2020-05-12 05:41:07
问题 During the installation, I need to copy some files from folder to another, how can I be sure, that this copying process was successful? FileCopy(ExpandConstant('{src}\copy.txt'), ExpandConstant('{app}\test_success.txt'), false); Is there any possibility to log copying process during installation. SetupLogging does not provide any information about copying process during the installation Thank You in advance 回答1: Use Log function: function FileCopyLogged( const ExistingFile, NewFile: String;

Preparing to Uninstall like Preparing to Install Page - Inno Setup

浪子不回头ぞ 提交于 2020-05-11 01:05:06
问题 I need to check if several .exe files are running or not (which are installed by setup) and then prompt user to close them if they are running and if not cancel the uninstall process. Is there any way to have something like Prepare page in install for uninstaller? Or How can I implement such checking? Even a message box would be perfect also. 回答1: If it is your application, make it create a mutex. Then you can use AppMutex directive, which works even for uninstaller. [Setup] AppMutex

How do I build two different installers from the same script in Inno Setup?

£可爱£侵袭症+ 提交于 2020-05-10 14:11:13
问题 I want to make a "standard" install for external use, but I also want to use the same script and tell it (with a command line param perhaps?) to include another set of files (PDB files for debugging) for our lab installations. (And make a totally different install exe) How can I do this? Is it possible? I don't see how to set this in the [Files] section (conditionally add files based on some value/param) Note – this is not for allowing the user an option DURING the install. I want a build

Run application after successful install

偶尔善良 提交于 2020-05-10 03:54:52
问题 How to make check box that allow user to run application after installation? 回答1: Check the postinstall flag in the [Run] section, see the documentation at https://jrsoftware.org/ishelp/topic_runsection.htm#postinstall 回答2: There you go: under [Run] : Filename: {app}\{cm:AppName}.exe; Description: {cm:LaunchProgram,{cm:AppName}}; Flags: nowait postinstall skipifsilent under [CustomMessages] : AppName=mySoftwaresNiceName LaunchProgram=Start mySoftware after finishing installation 回答3: Add

Run application after successful install

别等时光非礼了梦想. 提交于 2020-05-10 03:54:45
问题 How to make check box that allow user to run application after installation? 回答1: Check the postinstall flag in the [Run] section, see the documentation at https://jrsoftware.org/ishelp/topic_runsection.htm#postinstall 回答2: There you go: under [Run] : Filename: {app}\{cm:AppName}.exe; Description: {cm:LaunchProgram,{cm:AppName}}; Flags: nowait postinstall skipifsilent under [CustomMessages] : AppName=mySoftwaresNiceName LaunchProgram=Start mySoftware after finishing installation 回答3: Add

Run application after successful install

半世苍凉 提交于 2020-05-10 03:54:12
问题 How to make check box that allow user to run application after installation? 回答1: Check the postinstall flag in the [Run] section, see the documentation at https://jrsoftware.org/ishelp/topic_runsection.htm#postinstall 回答2: There you go: under [Run] : Filename: {app}\{cm:AppName}.exe; Description: {cm:LaunchProgram,{cm:AppName}}; Flags: nowait postinstall skipifsilent under [CustomMessages] : AppName=mySoftwaresNiceName LaunchProgram=Start mySoftware after finishing installation 回答3: Add

How to install SQL Server 2008 Express with Inno Setup?

ぐ巨炮叔叔 提交于 2020-05-10 03:37:53
问题 anyone have script or procedures to install SQL Server 2008 Express, set up the database for the app and finally install a client .NET WinForm application? 回答1: In situations like this where I'm relying on third-party products (SQL Server Express), I tend to use command-line driven installs (either directly in a cmd file or called from a 'proper' install tool). This site shows you how to install Express from the command line, then you can use the SQL Express utility for object creation. This

Compile Inno Setup installer for specific component only

大城市里の小女人 提交于 2020-04-11 08:28:51
问题 I have an Inno Setup script that creates an installer ( FullInstall.exe , for example). The script contains several components, selected using types in the standard way, so that it currently has something like: [Types] Name: standard; Description: Standard installation Name: dev; Description: Development installation Name: disponly; Description: Display utility only Name: custom; Description: Custom installation; Flags: iscustom [Components] Name: core; Description: Core files; Types: