Skip to content
⌘ NSIS Forum Archive

NSIS Wrapper Vista problem

7 posts

chllen#

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
jpderuiter#
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
chllen#
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.
Anders#
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