|
|
#1 |
|
Guest
Posts: n/a
|
Problem and doubt
Before I show the installer i use a function in which i check if the program is installed, the user can install all the things but there is no need to have the program installed, but i used an option to run the program on the las page of the installer, how can i disable the run program if it is not installed in the system
Thanks again Greetings |
|
|
|
#3 |
|
Guest
Posts: n/a
|
How can i do this, i am a newbie
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
You need to remove the check-box on your finish page then?
You could delete it using: code: However, I don't know which Field number it is. It's probably something like Field 4... You'll have to experiment to get it right. Obviously, if your program exists, then you don't want to jump over the DeleteINISec command. You can jump over it using StrCmp. E.g. StrCmp $R0 "1" 0 +2 -Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#5 |
|
Guest
Posts: n/a
|
It seems not to work it allows me to hide the elements in the last page but i'm not allowed of hide the check box... what can i do?
|
|
|
|
#6 |
|
Forum King
|
can you paste the affected code-snippet?
|
|
|
|
|
|
#7 |
|
Guest
Posts: n/a
|
The code is the code wrote by AFROW UK, i need to disable the run check box in the last page of the uninstaller, but i can get it disabled, what can i do?
|
|
|
|
#8 |
|
Forum King
|
did you insert a number for #?
|
|
|
|
|
|
#9 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
You need to change Field # to e.g. Field 4, like I said. I don't know which Field number it is for your check-box therefore you need to experiment.
If you want to simply disable the run check-box, then change: DeleteINISec "$PLUGINSDIR\ioSpecial.ini" "Field #" ...to... WriteINIStr "$PLUGINSDIR\ioSpecial.ini" "Field #" "Flags" "DISABLED" Again, change the field number to the right one! -Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#10 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Ok, it was a good guess. The Field number is infact Field 4.
-Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#11 |
|
Guest
Posts: n/a
|
I've tried with all the numbers and yes it disable the lateral graphic, the main text,the explain item but the chek box is not disabled by i don't know why...
|
|
|
|
#12 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Works for me:
code: Are you using the latest version of NSIS? -Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#13 |
|
Guest
Posts: n/a
|
This worked fine for me! the older one that you wrote here not!!!
Thanks |
|
|
|
#14 |
|
Guest
Posts: n/a
|
Sorry but i need some improvements on this, now i've had it disabled but it's checked so the installer tries to launch the software, now how can i uncheck it?
Greetings Pedro Garcia Rodriguez |
|
|
|
#15 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Use !define MUI_FINISHPAGE_RUN_NOTCHECKED
-Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#16 |
|
Guest
Posts: n/a
|
I love this guy, I love you... you are ta man!!!
Thanks for share your invaluable knowledge |
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|