Jump to content

msiexec fails to locate msi using 7 zip


Recommended Posts

Posted (edited)

Hi,

I have created an exe that contains msi and some configuration files using 7 zip.

This works fine on most OS as far as I can tell but when we brought this to our customer site, it failed to launch our msi file.

I ran procmon and noticed that msiexec was looking for msi file in C:\ instead of temp folder that 7 zip created to extract msi and configuration files.

FYI, I tried to run 7 zip program to extract installer exe and I was able to extract them without any issue.

I tried to figure out why this happened but I could not and the issue is that I cannot reproduce this strange behavior locally.

Has anyone seen this behavior before? If you have any insight/suggestion, please let me know. Thanks.

FYI, here is my 7 zip conf file.

;!@Install@!UTF-8!

Title="XXProgram Setup Installation"

BeginPrompt="Do you want to install XXProgram on your computer?"

Directory="C:\\Windows\\System32\\"

RunProgram="cmd.exe /c copy /v configuration.conf C:\\Windows\\temp\\ & msiexec.exe /i setup.msi"

GUIMode="2"

;!@InstallEnd@!

YEIH

Edited by YEIH

Posted

You dont need to use msiexec or msistub anymore to launch msi installers its built in and you dont have to use & to launch a seperate install process you can use as many RunProgram lines as you like...try

;!@Install@!UTF-8!
Title="XXProgram Setup Installation"
BeginPrompt="Do you want to install XXProgram on your computer?"
Directory="C:\\Windows\\System32\\"
RunProgram="cmd.exe /c copy /v configuration.conf %windir%\\temp\\"
RunProgram="setup.msi"
GUIMode="2"
;!@InstallEnd@!

Posted

Thank you very much for your reply.

I tried your suggestion but setup.msi was not launched at all. Basically exe quitted after copy was done.

FYI, I create exe in linux box and I am just wondering if that caused the issue. Thank you again for your input.

YEIH

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...