Old 27th April 2015, 09:26   #1
Satara
Junior Member
 
Join Date: Nov 2013
Posts: 9
Error when launching installer from network path

Hi,

one of our customers complained that our installer is not startable from a network path. His error message was: "Error launching installer".

I myself wasn't able to reproduce this, neither on Windows 7 nor on Windows 8.1. But now a colleague gets a similiar problem on Windows 8.1 Pro.
When he tries to launch the installer from a network or unc drive he gets the message "Falscher Parameter" (Wrong Argument). Not sure if this is the german equivalent for "Error launching installer".

I already read on http://nsis.sourceforge.net/Why_do_I_get_NSIS_Error that this can happen, if the installer is started from a "forbidden location", but the examples listed there work fine for me (e.g. Windows, Program Files folder). My colleague also tried to launch the installer with the NCRC option, but the result was the same.

Does anyone know what is causing this problem?

Best,
Satara
Satara is offline   Reply With Quote
Old 28th April 2015, 02:27   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
Could be anti-virus or other security software that is getting in the way. Possibly also the ACL on the folder and/or share...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 28th April 2015, 04:09   #3
Lightman4747
Junior Member
 
Join Date: Apr 2015
Posts: 1
Try to repeat like on this video https://youtu.be/mWk9T8WXXJc
Lightman4747 is offline   Reply With Quote
Old 28th April 2015, 04:52   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
#define _LANG_CANTOPENSELF _T("Error launching installer") and it looks like that can only happen when it is unable to open itself, to be precise, the call to CreateFile with GENERIC_READ,FILE_SHARE_READ,OPEN_EXISTING fails. (This message is always in English)

A error like this can be caused by anti-virus software but I cannot really understand why they would block a read request.

I'm guessing it is one of these two issues:

A) Accessing the file over UNC is slightly slower or handled differently in the kernel so the AV software steps on our toes.

B) We end up using the wrong path for some reason, not sure why that would happen but there might be network, virtualization and file redirection going on.

It would really help if we could get a Process Monitor log so we can at least find out if the open operation fails with access denied, not found or even some other error.

IntOp $PostCount $PostCount + 1
Anders 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