inno-setup

How to automatically update an application installed with Inno Setup

社会主义新天地 提交于 2020-07-07 12:33:10
问题 I have an executable application setup.exe for Windows that I realized with Launch4j/Inno Setup based on Java. I often frequently release new versions and bug fixes. I would like to know if there is a mechanism to install updates automatically? 回答1: Inno Setup does not have any built-in mechanism for implementing automatic updates. You need to implement that yourself: Make your application check for new versions (against your application webpage?). E.g. on startup (on a background thread?) If

how to modify the exe.config from Innosetup script

戏子无情 提交于 2020-07-05 08:53:14
问题 I've started to learn Innosetup scripting by myself. For this i have created a simple C# console application, which reads an element from a configuration file and outputs onto the console. <configuration> <appSettings> <add key ="Name" value="Brad Pitt"/> </appSettings> </configuration> For ex: It shall read the value by querying the key attribute "Name". I want the value in the .config to be written from the Innosetup setup script. i.e During the installation process i shall gather the name

how to modify the exe.config from Innosetup script

最后都变了- 提交于 2020-07-05 08:52:07
问题 I've started to learn Innosetup scripting by myself. For this i have created a simple C# console application, which reads an element from a configuration file and outputs onto the console. <configuration> <appSettings> <add key ="Name" value="Brad Pitt"/> </appSettings> </configuration> For ex: It shall read the value by querying the key attribute "Name". I want the value in the .config to be written from the Innosetup setup script. i.e During the installation process i shall gather the name

how to modify the exe.config from Innosetup script

ⅰ亾dé卋堺 提交于 2020-07-05 08:52:07
问题 I've started to learn Innosetup scripting by myself. For this i have created a simple C# console application, which reads an element from a configuration file and outputs onto the console. <configuration> <appSettings> <add key ="Name" value="Brad Pitt"/> </appSettings> </configuration> For ex: It shall read the value by querying the key attribute "Name". I want the value in the .config to be written from the Innosetup setup script. i.e During the installation process i shall gather the name

Creating a windows installer for python using inno setup

淺唱寂寞╮ 提交于 2020-07-04 06:52:11
问题 I am developing an application that needs python to be installed to execute. I am thinking of creating an installer(for windows) which will install the required setups automatically before installing my application. I have gone through inno setup which looks like a better solution for my requirement.I am new to both python and inno setup.Can Any body provide some links and guidelines on this.Any help is appreciated. 回答1: if you are thinking of creating an installer(for windows) which will

Defining structure with wide character pointer field in Inno Setup Unicode

六月ゝ 毕业季﹏ 提交于 2020-06-29 13:20:41
问题 Some external libraries, notably Windows API, use structure types with some fields being a pointer to a character array. Inno Setup Unicode does not have PChar ( PWideChar ) type. How do I define a structure, that uses fields of wide character array pointer type? For example how do I define SHFILEOPSTRUCT structure? type TSHFileOpStruct = record hwnd: HWND; wFunc: UINT; pFrom: { what type? } pTo: { what type? } fFlags: Word; fAnyOperationsAborted: BOOL; hNameMappings: HWND; lpszProgressTitle:

Defining structure with wide character pointer field in Inno Setup Unicode

雨燕双飞 提交于 2020-06-29 13:15:29
问题 Some external libraries, notably Windows API, use structure types with some fields being a pointer to a character array. Inno Setup Unicode does not have PChar ( PWideChar ) type. How do I define a structure, that uses fields of wide character array pointer type? For example how do I define SHFILEOPSTRUCT structure? type TSHFileOpStruct = record hwnd: HWND; wFunc: UINT; pFrom: { what type? } pTo: { what type? } fFlags: Word; fAnyOperationsAborted: BOOL; hNameMappings: HWND; lpszProgressTitle:

Inno Setup, install only on a non existent directory

大兔子大兔子 提交于 2020-06-27 03:47:29
问题 I would like to not permit the installation on an existent directory or at least a non-empty one. Right now I am using this workaround just to check if the program was installed in the directory chosen by the user but this doesn't work if it is a directory where the program was not installed or a non empty one. function NextButtonClick(PageId: Integer): Boolean; begin Result := True; if (PageId = wpSelectDir) and FileExists(ExpandConstant('{app}\some_app_file')) then begin MsgBox('Warning

Can I safely remove Inno Setup script sections from third party tools like [_ISTool]?

女生的网名这么多〃 提交于 2020-06-23 04:29:24
问题 I have in my scripts: [_ISTool] EnableISX=true Do I need to keep these any more? I know that it is part of the legacy ISTools extensions which are now part of Inno. 回答1: Inno Setup does not use that section at all. It uses only the sections listed in the documentation. So unless you use some 3rd party extension or tool that makes use of that, you can safely remove it. 来源: https://stackoverflow.com/questions/62438110/can-i-safely-remove-inno-setup-script-sections-from-third-party-tools-like

Setting task value based on active file type associations when upgrading

跟風遠走 提交于 2020-06-13 08:49:26
问题 I have the following tasks as part of my installer: [Tasks] Name: register32; Description: "Meeting Schedule Assistant (32 bit)"; \ GroupDescription: "{cm:FileAssociations}"; flags: unchecked exclusive; Name: register64; Description: "Meeting Schedule Assistant (64 bit)"; \ GroupDescription: "{cm:FileAssociations}"; Check: IsWin64; Flags: exclusive; By design, Inno Setup has UsePreviousTasks set to Yes . However, my software installs both bit editions and the user may subsequently override