[RESOLVED] Inno Setup Help: A few things i need to sort...
Hello,
Ok i have a few questions regarding Inno Setup.
1: Can any1 tell me if its possible to run an .exe before setup begins and depending on that it should continue. i.e
I know Inno Setup cant check for Processes.
So i created this in VB to check if the application is running then end its task else quit the installtion.
Now depending on the result of that i would like setup to continue.
2: Although UninstallIconFile & UninstallDisplayIcon bot point to an icon file, it seems to only use the icon of the executable file!! why cant i change it ?
3: Also i cant seem to achieve a simple thing:
Upon uninstall, user should get a msgbox asking whether to delete or keep
user profiles & settings etc...
If yes then delete else keep, but i keep on getting errors!!
Can any1 guide on how to get this?
Thanx
Re: Inno Setup Help: A few things i need to sort...
1) Yes it can check for a process. The INNO newsgroups from the INNO site have lots of good info
http://news.jrsoftware.org/news/inno.../msg05721.html
2/3) Can you post your iss file?
Re: Inno Setup Help: A few things i need to sort...
1) What you do in this situation is to create a seperate setup that runs the program that you want then runs the installation setup program.
2) - Available in the Inno Setup Help Section
UninstallIconFile
Description:
Obsolete in 5.0.0. As Setup and Uninstall have been merged into a single executable, setting a custom icon for Uninstall is no longer possible.
UninstallDisplayIcon
Description:
This lets you specify a particular icon file (either an executable or an .ico file) to display for the Uninstall entry in the Add/Remove Programs Control Panel applet on Windows 2000/XP/2003. The filename will normally begin with a directory constant.
If the file you specify contains multiple icons, you may append the suffix ",n" to specify an icon index, where n is the zero-based numeric index.
If this directive is not specified or is blank, Windows will select an icon itself, which may not be the one you prefer.
Examples:
UninstallDisplayIcon={app}\MyProg.exe
UninstallDisplayIcon={app}\MyProg.exe,1
3) Are you using the code section to achieve this?
Please post your script. It would be easier to understand then.
Re: Inno Setup Help: A few things i need to sort...
OK so for the 1st one i created a separate .exe which checks for the process and ends it upon request, then with SHELLEXECUTE i start the real setup.
But whats this Mutex thing? isnt it thesame? There are no decent exaples on the web. What do i put there? the process name i want to check? I did and it doesnt pick em up?!?!
2:
UninstallIconFile={app}\MyFile.exe,2
UninstallDisplayIcon={app}\UnInstall_ICON.ico
3:
I tried the CODE section, but kept on getting errors, so i deleted the whole thing, but here is an example which was from my backed up inno file.
//[Code]
function InitializeUninstall(): Boolean;
begin
If MsgBox('Delete Settings?', mbConfirmation, MB_YESNO) = idYes Then
function DelTree({userappdata}\MyApp, True, True, True);
end;
Its obviously wrong cos it doesnt work : )
Re: Inno Setup Help: A few things i need to sort...
1 - That's one way but I was referring to a setup program that runs your program (Find Processes) then runs the other setup program (installation).
2 - UninstallIconFile - OBSOLETE
3 - Just showing one section won't do it. You call it from another which may be wrong. Post the whole script.
Re: Inno Setup Help: A few things i need to sort...
1: Ok now i get what u mean..
2: I gota get that icon changed in some way.. cant have uninstall icon same as application icon..!!! Maybe create a custom uninstall .exe with Vb?
3: Thats the only code i got...
Dont you have any example of achieving this?
Re: Inno Setup Help: A few things i need to sort...
You mean to say all to your script is the CODE section?
Re: Inno Setup Help: A few things i need to sort...
I mean this is the only scripting i got under the [CODE] section.
Re: [RESOLVED] Inno Setup Help: A few things i need to sort...
Well, What does post your WHOLE Script remind you of????
Re: [RESOLVED] Inno Setup Help: A few things i need to sort...
Ermm.... why would you want the whole code..
I cant post the whole code..i dont think itll be of any use to view it... cos its only copying files n stuff..
Cant you just give me an example of how a message box function works with Inno Setup.
Re: [RESOLVED] Inno Setup Help: A few things i need to sort...
If you are going to decide what is important I imagine that you can solve that problem yourself...