Old 9th August 2007, 12:11   #1
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Vista doesn't like an NSIS installer

In Windows Vista:
Quote:
First it puts up the Nag box that this is an "Unidentified Program" and you need to click "Allow" the install. Then, after the install, only sometimes, Vista will say that the program might not have installed correctly and should be reinstalled with the proper configuration settings. You need to say it did install correctly or click on the Reinstall with proper settings (nothing different) and let it do it again. Then Vista is happy.
The installer does not write any registry keys. It only extracts files.

Any ideas?

Stu
Afrow UK is offline   Reply With Quote
Old 9th August 2007, 12:37   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Throw vista away, considered as an idea?

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 9th August 2007, 13:20   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,172
try adding RequestExecutionLevel to disable lagacy installer detection.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 10th August 2007, 00:33   #4
helix400
Member
 
Join Date: Oct 2003
Posts: 51
Re: Vista doesn't like an NSIS installer

Quote:
First it puts up the Nag box that this is an "Unidentified Program" and you need to click "Allow" the install.
I'm pretty sure this part is an NTFS thing. If the file was copied from an unidentified source, it will pop up that message when a user tries to execute it.

For example, if you download an installer from the web using Internet Explorer to a local NTFS drive, a setting is put on that file that says it's an unidentified program. So when you double click on it, you get that dialog box.
helix400 is offline   Reply With Quote
Old 10th August 2007, 19:18   #5
DariTo
Junior Member
 
Join Date: Aug 2007
Posts: 7
I just tried a simple nsis installer writing in registry and it did fine, maybe a little more explanation?
DariTo is offline   Reply With Quote
Old 10th August 2007, 19:20   #6
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Using RequestExecutionLevel worked.

Stu
Afrow UK is offline   Reply With Quote
Old 12th August 2007, 22:12   #7
vbguy
Junior Member
 
Join Date: Jul 2006
Posts: 30
Re: Re: Vista doesn't like an NSIS installer

Quote:
Originally posted by helix400
I'm pretty sure this part is an NTFS thing. If the file was copied from an unidentified source, it will pop up that message when a user tries to execute it.

For example, if you download an installer from the web using Internet Explorer to a local NTFS drive, a setting is put on that file that says it's an unidentified program. So when you double click on it, you get that dialog box.
It's a UAC function in vista, and there was a similar warning for files downloaded with IE in XP SP2.

You can avoid the non-descript yellow box if you code sign your installer. So instead of a yellow warning that says "Unidentified Program", it will instead be a more subtle color and say "YourProgramName from YourCompanyName needs elevated privileges.

A code signing certificate cost anywhere from $90 to $400 depending on who you buy from.

See this article to learn more about code signing and some cheap places to get certificates: en.wikipedia.org/wiki/Code_signing
vbguy is offline   Reply With Quote
Old 13th August 2007, 01:19   #8
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Re: Re: Re: Vista doesn't like an NSIS installer

Quote:
Originally posted by vbguy
It's a UAC function in vista, and there was a similar warning for files downloaded with IE in XP SP2.

You can avoid the non-descript yellow box if you code sign your installer. So instead of a yellow warning that says "Unidentified Program", it will instead be a more subtle color and say "YourProgramName from YourCompanyName needs elevated privileges.

A code signing certificate cost anywhere from $90 to $400 depending on who you buy from.

See this article to learn more about code signing and some cheap places to get certificates: en.wikipedia.org/wiki/Code_signing
Wouldn't be cheapier just to stick with XP or above?


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 14th August 2007, 00:31   #9
vbguy
Junior Member
 
Join Date: Jul 2006
Posts: 30
Re: Re: Re: Re: Vista doesn't like an NSIS installer

Quote:
Originally posted by Joel
Wouldn't be cheapier just to stick with XP or above?
Sure, but when XP goes the way of Windows 98 and all of your users switch to Vista and beyond, you're stuck with unprofessional looking software and installers.
vbguy is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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