Is it possible to use .MSI command line parameters in .EXE - Advanced Installer Community
arunraj.n
Posts: 13
Joined: Wed Nov 09, 2016 7:41 am

Is it possible to use .MSI command line parameters in .EXE

Hi all,
Actually i want to use .MSI command line parameters in .EXE it is possible or not?

For example in MSI to create log file need to give following commands:
"Setup.msi /v /l*v c:\test.log"

Above same command will work for .EXE also.Is it possible?
"Setup.exe /v l*v c:\test.log"

Withregards,
Arun
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Is it possible to use .MSI command line parameters in .EXE

Hello Arun,

Yes, you can pass any valid msiexec command line parameter to the EXE setup packages created with Advanced Installer. For instance, to create a verbose log file you should launch the EXE like this:

Code: Select all

setup.exe /l*v c:\test.log
If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
arunraj.n
Posts: 13
Joined: Wed Nov 09, 2016 7:41 am

Re: Is it possible to use .MSI command line parameters in .EXE

Hi Daniel,
Thanks for the information.

Actually i created sample.exe with single exe setup(resource inside) option.

I tried following .msi command line for .exe
"sample.exe" /exenoui /a // TARGETDIR=C:\sample\ /qb

Actually this command is for extracting the msi with exe.But i am getting following error
"Source file not found
c:\users\Appdata\temp\sample.file does not exist"

Why i am getting this error?. Is there any way to solve this?
Please reply as soon as possible it an urgent

with regards
Arun
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Is it possible to use .MSI command line parameters in .EXE

Hello Arun,

This is a limitation of our "Single EXE setup (resource inside)" package type. When building an EXE with resources inside the CAB file is not included in the MSI which is embedded in the EXE. Instead it is placed alongside the MSI and embedded in the EXE setup. Then, during installation the CAB it is extracted from the EXE just before the file installation stage. It is not extrated in due time for an administrative installation.

To make the EXE setup compatible with an administrative installation you should configure it to extract the CAB at the same time when extracting the MSI. For this you should just go to "Install Parameters" page and add the following property:
  • Name: ExtractFilesFirst
    Value: 1
Then, rebuild and test again the EXE admin install command.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
arunraj.n
Posts: 13
Joined: Wed Nov 09, 2016 7:41 am

Re: Is it possible to use .MSI command line parameters in .EXE

Hi team,

I created the 64-bit exe. While extracting the exe in 64-bit it is working in fine.

But if i extract the same exe in 32-bit it showing "Platform Unsupported" message.

How to solve this one?

BR
Arun
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Is it possible to use .MSI command line parameters in .EXE

Hello Arun,

This is the normal behavior of Windows, it can't run 64 bit setups on a 32 bit machine. As a workaround you can build a "Mixed 32/64-bit matching the platform" setup. you can found more information about this type of package in "Packages Types" article.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”