/build/static/layout/Breadcrumb_cap_w.png

Wrap MSI in EXE (inc command line)

Hi,

I need to wrap an MSI in an EXE ensuring it runs quietly, the command line i want to pass is:


msiexec /i Product.MSI /qb /L*v %temp%\Product.log


Now i know that wise can create an exe for you and you can pass /silent or whatever, but i need an exe to self extract and launch with this command line..

Does anyone know of any free tools i can use to do this?

Thanks in advance!

Paul

0 Comments   [ + ] Show comments

Answers (8)

Posted by: nheim 16 years ago
10th Degree Black Belt
1
Hi folks,
@Kevin: This is not a free program AFAIK, its only available as part of Wise Package Studio.
It would be quite an overkill to get WPS only to do setup stub.

@Paul: 7zip and Winrar have this capability for sure. In Winrar Help, search for "SFX" and then click setup.
In 7-zip Help, go to 'Command line version' - 'Switches' - 'sfx'

Regards, Nick
Posted by: nheim 16 years ago
10th Degree Black Belt
0
Hi Paul,
have a look at Winrar or 7zip.
Regards, Nick
Posted by: HotSpot 16 years ago
Orange Senior Belt
0
I've had a quick look at winrar and 7zip but they do not seem to support the passing of commanlines to extracted files...
Posted by: kj95376 16 years ago
Yellow Belt
0
This is a very simple task to accomplish.

The tool you would us is called Wise Script Express (it is included with Wise Package Studio) You start out with a blank WSE script, you then add the following to that empty script:

1) Create a variable for the UNC location of your MSI Example: variable = SOURCE value of: UNC path to MSI (do not include the MSI itslef)

2) Add an Action called "execute Program"

3) For the .EXE path type in: %SYS32%\msiexec

4) For the command line type in: /i %SOURCE%\app.msi /QB! you are using SOURCE for your complete UNC path you created with the variable called SOURCE.

Now your complete command line will look like this: msiexec /i %SOURCE%\app.msi /QB!

5) Compile the WSE into an EXE by clicking on the Compile button.

Comments:
  • But this msi and exe seperately but I need to keep msi inside that exe and extract during installation and if possible delete during uninstallation of that exe. - uday1kiran 11 years ago
Posted by: HotSpot 16 years ago
Orange Senior Belt
0
Thanks nick,

I was thrown by the SFX part, thats worked a treat!

Paul
Posted by: AngelD 16 years ago
Red Belt
0
Paul,

If you feel that Nick's answer helped to solve your problem, then why not rate his post.
It's in this way users can show the contributers their appreciation and gratitude.
Posted by: HotSpot 16 years ago
Orange Senior Belt
0
indeed, 1 point to the man!
Posted by: nheim 16 years ago
10th Degree Black Belt
0
Thanks for the flowers, folks :-)
Keep packaging.
Regards, Nick
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ