|
|
#1 |
|
Member
Join Date: Nov 2008
Posts: 72
|
Hello
How do I run my program automatically after an install? Tried following this guide: http://nsis.sourceforge.net/Run_an_a...ter_an_install but didn't work for me. Here is my nsi; code: Please tell me how to integrate a 'run program on finish' feature. Thanks in advance, Panarchy |
|
|
|
|
|
#2 |
|
Member
|
I use something like this:
code: Yes, I !define PROGEXE and PRODUCTNAME early on in the script (along with lots of other potentially repetitive things).
|
|
|
|
|
|
#3 |
|
Member
Join Date: Nov 2008
Posts: 72
|
Thanks.
Just tried that, it didn't work. Please recommend another method. Thanks in advance, Panarchy |
|
|
|
|
|
#4 |
|
Member
|
Can you define "it didn't work"? Did it cause compiler errors? Did it not show the checkbox? Did it not actually launch the exe?
|
|
|
|
|
|
#5 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Make sure you put the defines before !insertmacro MUI_PAGE_FINISH.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#6 |
|
Member
Join Date: Nov 2008
Posts: 72
|
Thanks, I think I finally got it to work.
|
|
|
|
|
|
#7 |
|
Member
Join Date: Nov 2008
Posts: 72
|
Confirming;
Yes, it works!!! Thanks Afrow (and lewellyn for replying...) |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Aug 2009
Posts: 3
|
Any idea on how to start an application after a silent install ?
Can't find anything yet.... |
|
|
|
|
|
#9 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Just put a Section at the end that does it, or use Function .onInstSuccess.
Edit: And if necessary wrap the code inside it with an ${If} ${Silent}. Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Aug 2009
Posts: 3
|
Function .onInstSuccess
Exec "blablabla.exe" FunctionEnd Found your other post, thank you |
|
|
|
|
|
#11 |
|
Junior Member
Join Date: Sep 2005
Location: Germany
Posts: 35
|
Only as a hint.
If your installer was elevated (under Vista or Seven), the executable started by "Exec" is also elevated. And it is not good to start the application with this privileges without any good reason. This signature is currently on vacation! |
|
|
|
|
|
#12 |
|
Junior Member
Join Date: Sep 2006
Posts: 47
|
I am using the UAC_AsUser_Execshell from the UAC plug-in.
http://nsis.sourceforge.net/UAC_plug-in This should prevent the program from running elevated. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|