chllen
10th July 2009 02:38 UTC
NSIS Wrapper Vista problem
I'm using NSIS as exe wrapper.
example:
Name "Notepad launcher"
OutFile "run.notepad.exe"
SilentInstall silent
AutoCloseWindow true
ShowInstDetails nevershow
Section ""
ClearErrors
Exec notepad
SetErrorLevel 0
SectionEnd
After closing notepad pops up the 'Program Compatibility Assistant' saying:
"This program might not have installed correctly"
"If this program didn't install correctly, try reinstalling using settings that are compatible with this version of Windows."
with options:
* Reinstall using recommended settings
* This program installed correctly."
Is there any way to make a package which Vista will not consider to be an installer?
Any suggestions will be much appreciated.
Thanks
Afrow UK
10th July 2009 11:08 UTC
Did you put in RequestExecutionLevel then?
Stu
chllen
10th July 2009 16:48 UTC
Yes!
I add
RequestExecutionLevel admin
in script head.
And remove my useless
ClearErrors
and
SetErrorLevel 0
BUT why I need add this????
NSIS exe by default run as admin(without RequestExecutionLevel admin)!
Thanks a lot.
Afrow UK
10th July 2009 16:50 UTC
But does it work?
Stu
chllen
10th July 2009 16:52 UTC
YES, its work!
no more "Program Compatibility Assistant" message
Anders
10th July 2009 17:36 UTC
Originally posted by chllen
NSIS exe by default run as admin(without RequestExecutionLevel admin)!
that is because of the compatibility mode, NSIS is detected as a installer, and unless you add a add/remove programs entry to the registry, its going to display that warning since MS devs are brain dead