简体   繁体   中英

Inno Setup Installer Not Working in Windows 7

i'm trying to create an installer for my .exe game application i've created in java that I need to deliver as a college assignment, however i'm just using the basic Inno Setup Script Wizard to pack it up and get the installer, but seems like i'm having issues when i'm trying to open the created installer in Windows 7, it works fine in windows 10 and windows 8/8.1, but the installer doesn't works in windows 7, it doesn't open or anything, but it shows that the process is active in the task manager of windows 7.

Here's the code that the Wizard Script tool generated

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{21BF7A5F-3140-4AE4-B564-593CCF9FC983}
AppName=Crossy Road 2D
AppVersion=1.0
;AppVerName=Crossy Road 2D 1.0
AppPublisher=Cryo
DefaultDirName={pf}\Crossy Road 2D
DisableProgramGroupPage=yes
OutputDir=C:\Users\Cryo Codex\Desktop\Installer
OutputBaseFilename=Crossy Raod 2D Installer
SetupIconFile=C:\Users\Cryo Codex\Downloads\c1.ico
Compression=lzma
SolidCompression=yes

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "C:\Users\Cryo Codex\Desktop\Executable\Crossy Road 2D.exe"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{commonprograms}\Crossy Road 2D"; Filename: "{app}\Crossy Road 2D.exe"
Name: "{commondesktop}\Crossy Road 2D"; Filename: "{app}\Crossy Road 2D.exe"; Tasks: desktopicon

[Run]
Filename: "{app}\Crossy Road 2D.exe"; Description: "{cm:LaunchProgram,Crossy Road 2D}"; Flags: nowait postinstall skipifsilent

如果您在运行安装程序时遇到问题,请尝试关闭Avast保护。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM