[Setup] ;------------------------------------------------------------------------------ ; The settings in this section control the display name and links used by Inno ; setup during the display of the setup wizard. Put your company and product ; info here in place of ours. ;------------------------------------------------------------------------------ AppName=The Matrix Screensaver AppVerName=The Matrix Screen Saver 1.0 AppPublisher=heximal AppPublisherURL=http://heximal.ru AppSupportURL=http://heximal/ru DefaultDirName={pf}\TheMatrix_hex DisableDirPage=yes DefaultGroupName=The Matrix Screen Saver DisableProgramGroupPage=yes SetupIconFile=TheMatrix.ico WizardImageFile=Splash.bmp OutputBaseFilename=setup_matrix_1.0.0.0 LicenseFile=license.rtf [Run] ;------------------------------------------------------------------------------ ; The nclaunch utility has to be started at install time for the Launch.* ; functions to work the first time the screensaver starts. If a version of the ; utility is already running it will be stopped so a newer version can be ; installed (if necessary). ;------------------------------------------------------------------------------ ;Filename: "{app}\unlaunch.exe"; Parameters: "/s"; StatusMsg: "Removing NCLaunch..." ;Filename: "{app}\nclaunch.exe"; Flags: nowait ;------------------------------------------------------------------------------ ; Open the screensaver Properties dialog with newly installed screensaver ; selected. ;------------------------------------------------------------------------------ Filename: "{sys}\rundll32.exe"; Parameters: "desk.cpl,InstallScreenSaver {sys}\Matrix.scr" [UninstallRun] ;------------------------------------------------------------------------------ ; Remove nclaunch if it's running (otherwise Inno Setup won't be able to ; uninstall it) ;------------------------------------------------------------------------------ ;Filename: "{app}\unlaunch.exe"; Parameters: "/s"; StatusMsg: "Removing NCLaunch..." [Registry] ;------------------------------------------------------------------------------ ; This makes sure nclaunch is always running (because the screensaver can't ; start it). ;------------------------------------------------------------------------------ Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "nclaunch"; ValueData: "{app}\nclaunch.exe"; Flags: uninsdeletevalue noerror Root: HKCU; Subkey: "Software\heximal\Matrix"; Flags: uninsdeletekey Root: HKCU; Subkey: "Software\heximal"; Flags: uninsdeletekeyifempty [Files] ;------------------------------------------------------------------------------ ; Install nclaunch and unlanch (the nclaunch removal tool). ;------------------------------------------------------------------------------ ;Source: "nclaunch.exe"; DestDir: "{app}"; CopyMode: alwaysskipifsameorolder ;Source: "unlaunch.exe"; DestDir: "{app}"; CopyMode: alwaysoverwrite ;------------------------------------------------------------------------------ ; Your SCR and any other support files go here. This (and the [Setup] section ; are the only parts of the script that you should have to edit. ;------------------------------------------------------------------------------ Source: "Matrix.scr"; DestDir: "{sys}"; CopyMode: alwaysoverwrite