inno-setup

Why is my Delphi 6 program triggering a request for admin rights upon install on only a minority of Windows 7 systems (InnoSetup)?

£可爱£侵袭症+ 提交于 2020-01-13 05:47:12
问题 I have a Delphi 6 program that for most users installs fine while running under a user account without admin privileges. However, on some systems it triggers a request for admin rights. Unfortunately mine isn't one of them so it's hard for me to diagnose this problem. I use InnoSetup 5.1.9 to build my install programs. How can I figure out what I need to change about my installation program's configuration to neutralize the need for admin rights on some people's systems? It's causing trouble

Inno Setup - How to display notifying message while installing if application is already installed on the machine?

痴心易碎 提交于 2020-01-13 05:40:10
问题 I am new to Inno Setup. I am creating an installer for my C# application using Inno Setup compiler-5.1.6. Using my script an installer is created, and it works fine. It installs the application and can be uninstalled from control panel as well. But my problem is that, if my application is already installed on my machine and I try to install it again it get installed without any message. It replaces the older installation. So my requirement is that , if application is already installed , it

Get a files last updated time using pascal (innosetup)

丶灬走出姿态 提交于 2020-01-11 11:51:35
问题 In the uninstall portion of an innosetup script, I'd like to add a check to see if a specific file's last update datetime occured within the last 10 mins. Does anyone know the innosetup compatable pascal code for this? 回答1: You can use the Windows API function GetFileAttributesEx to get the last modification date. Putting this in your [CODE] section should work: const GetFileExInfoStandard = $0; type FILETIME = record LowDateTime: DWORD; HighDateTime: DWORD; end; WIN32_FILE_ATTRIBUTE_DATA =

Inno Setup Constant in Code Section

徘徊边缘 提交于 2020-01-11 08:20:48
问题 Is there a way to get InnoSetup constant value in [Code] section? I need this during install time and the constant value that I am trying to get is {app} . 回答1: You can use AppValue := ExpandConstant('{app}'); Documentation on ExpandConstant Example of it's usage. 来源: https://stackoverflow.com/questions/6931945/inno-setup-constant-in-code-section

Inno Setup Constant in Code Section

微笑、不失礼 提交于 2020-01-11 08:20:30
问题 Is there a way to get InnoSetup constant value in [Code] section? I need this during install time and the constant value that I am trying to get is {app} . 回答1: You can use AppValue := ExpandConstant('{app}'); Documentation on ExpandConstant Example of it's usage. 来源: https://stackoverflow.com/questions/6931945/inno-setup-constant-in-code-section

How to execute a batch file on uninstall in Inno Setup?

隐身守侯 提交于 2020-01-11 06:31:04
问题 I'm using code from How do you execute command line tools without using batch file in Inno Setup response to execute all my batch files on installation (before, after). No I want to execute them just when user click "YES" to uninstaller , but can't find a way to do it. It executes before the confirmation Here is my code from [Code] section: function InitializeUninstall(): Boolean; var ResultCode : Integer; begin Result := True; Exec(ExpandConstant('{app}\scripts\unset.bat'), '', '', SW_HIDE,

running InstallUtil {app}/file.exe in inno setup

孤街醉人 提交于 2020-01-11 05:54:07
问题 I want to copy service files to {app} directory and then use this as a parameter in InstallUtil.exe. Here's some part of my code : [Files] Source: WCFService.exe; DestDir: {app} Source: WCFService.exe.config; DestDir: {app} [Run] Filename: {dotnet40}\InstallUtil.exe; Parameters: {app}\WCFService.exe This code doesn't work (but the files are copied into {app} directory correctly). However, if I use something like this : [Files] Source: WCFService.exe; DestDir: {src} Source: WCFService.exe

Terminate setup on 32-bit Windows in Inno Setup

北城以北 提交于 2020-01-11 05:45:12
问题 I'm using Inno Setup. Can someone please tell me how to terminate the setup, if the Windows version is 32-bit? Or to be more specific, when the setup starts, the code checks if the Windows Version is 32-bit and displays a warning then cancels the setup. What’s the command to terminate the setup completely? I'm using the following procedure procedure CheckWindows; begin if not IsWin64 then begin MsgBox('Error:The Windows version is 32bit',mbError,MB_OK); WizardForm.Close; end; end; It does

Restore previously entered data on custom page next time Inno Setup-made installer is executed

丶灬走出姿态 提交于 2020-01-11 04:09:12
问题 I want to use this code, but the part of the code to uninstall I need: in the next time I open the executable it can read the information written in this field 'Service name'. Can help me? And even now where it stores this information written in the 'Service name'? Relaced to: How do I record user input during install, so it can be used during uninstall? 回答1: If I understand you correctly, you're looking for a way to fill an input field with the previously stored data. In the example that you

Adding a help button to an InnoSetup wizard page

核能气质少年 提交于 2020-01-11 04:02:05
问题 I have a setup script with a custom wizard page to get a choice from the user. It would be nice to have a help button and to supply a small CHM file with the installable so that I can provide a detailed explanation of what the choices are. Anyone know whether there is an easy way to do this? 回答1: See this post for details on how to include a file with the installation package and reference that file before installation has started. To add a button to the install wizard, I included the