Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7739993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:39:43+00:00 2026-06-01T08:39:43+00:00

ExecWait msiexec /i myinstaller.msi /qn $0 That’s all I’m calling in my script. (The

  • 0

ExecWait "msiexec /i myinstaller.msi /qn" $0

That’s all I’m calling in my script. (The /qn is for silent installation without popping up any progress window, I’ve also tested without it).

It fails with an msiexec error code of 1619-This installation package could not be
opened. Verify that the package exists and
that you can access it, or contact the
application vendor to verify that this is
a valid Windows Installer package.

The same msiexec call works fine on the commandline, or if I write a basic NSIS script that does nothing else- which means it’s not because of NTFS permissions that a Google search throws up.

Therefore, it must be something else in my main installer script.
After commenting out nearly everything in my script to isolate the cause:

SetOutPath "$INSTDIR\Some directory"

If I comment this section out and don’t set an output path, everything works fine. What on earth is going on? Why should this interfere with the msiexec call?

Update – Here’s the tl;dr version of the problem – the following snippet doesn’t work when run as an independent script unless I comment out the SetOutPath call. WHY?
It does not matter whether the output directory has any files in it or not(it doesn’t), or whether I call it immediately before or several lines before.

showinstdetails show
 OutFile test.exe
section
 setoutpath "D:\back"
 ExecWait "msiexec /i MyInstaller.msi /qr" $0
 MessageBox MB_OK $0
sectionend
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T08:39:44+00:00Added an answer on June 1, 2026 at 8:39 am

    Found out what was wrong, with partial help from Nick and Anders above.
    In my other script which worked, I was calling SetOutPath after invoking the MSI.

    Changing the sequence worked.

    So lesson learned – relative paths get screwed up after calling SetOutPath , so in my original example, the path to the msi would be resolved against what was set in 'SetOutPath instead of using the current directory, where the installer is located.

    Thanks guys!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am compiling my 1st NSIS script, and enjoying the learning curve. The app
I have a batch file that I need to run within my NSIS installer.
I have a NSIS installer that at a point has to check if java
I am trying to write a script which run a mysqlimport_create_database.bat file with parameter.
As above. I'm specifically running a Java program using ExecWait, by invoking java.exe and
I need to uninstall previous version if installed already. I have a NSIS script.
Why does this script try to install the jre when it doesn't need to?
Am using nsis for launching my java application. I wanted to show a window
Using NSIS, I want to launch an uninstaller and wait for it to finish
The following NSIS line refuses to run for some reason (returns immediately) under Windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.