Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 10th July 2009, 01:38   #1
chllen
Junior Member
 
Join Date: Jul 2009
Posts: 4
NSIS Wrapper Vista problem

I'm using NSIS as exe wrapper.
example:

code:

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
chllen is offline   Reply With Quote
Old 10th July 2009, 06:38   #2
jpderuiter
Major Dude
 
Join Date: Feb 2007
Posts: 546
http://forums.winamp.com/showthread....hreadid=277958
jpderuiter is offline   Reply With Quote
Old 10th July 2009, 10:08   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
Did you put in RequestExecutionLevel then?

Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 10th July 2009, 15:48   #4
chllen
Junior Member
 
Join Date: Jul 2009
Posts: 4
Yes!
I add
code:
RequestExecutionLevel admin
in script head.
And remove my useless
code:
ClearErrors
and
code:
SetErrorLevel 0


BUT why I need add this????
NSIS exe by default run as admin(without RequestExecutionLevel admin)!

Thanks a lot.
chllen is offline   Reply With Quote
Old 10th July 2009, 15:50   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
But does it work?

Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 10th July 2009, 15:52   #6
chllen
Junior Member
 
Join Date: Jul 2009
Posts: 4
YES, its work!
no more "Program Compatibility Assistant" message
chllen is offline   Reply With Quote
Old 10th July 2009, 16:36   #7
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,779
Quote:
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

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump