Archive: NSIS Wrapper Vista problem


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

http://forums.winamp.com/showthread....hreadid=277958


Did you put in RequestExecutionLevel then?

Stu


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.

But does it work?

Stu


YES, its work!
no more "Program Compatibility Assistant" message


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