Advertisement

07.03.2008 at 12:13PM PDT, ID: 23537899
[x]
Attachment Details

How do I successfully run executables after the .msi that refers to them deposits them on a client computer?

Asked by BostonDynamics in Microsoft Server, Windows 2003 Server

The attached code snippet constructs a windows .msi.  It successfully deposits all files beginning with swinst (three total) onto the local users c:/temp directory.  

My challenge is to then have the MSI execute the three files, and after installation is completed, to delete them from the local users drive.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
;----------------------------------------------------------------------------
;    MODULE NAME:   SW.MM
;
;        $Author:   USER "IT"  $
;      $Revision:   1.15  $
;          $Date:   04 Jul 2008 17:10:46  $
;       $Logfile:   C:/DBAREIS/Projects.PVCS/Win32/MakeMsi/TryMe.mm.pvcs  $
;
; DESCRIPTION
; ~~~~~~~~~~~
;   1. #include "ME.MMH"
;   2. <$DirectoryTree Key="INSTALLDIR" ...
;   3. <$Files "swinst*.*" DestDir="c:\temp">
;----------------------------------------------------------------------------
 
 
;--- Include MAKEMSI support (with my customisations and MSI branding) ------
#define VER_FILENAME.VER  TryMe.Ver      ;;I only want one VER file for all samples! (this line not actually required in "tryme.mm")
#include "ME.MMH"
 
 
;--- Want to debug (not common) ---------------------------------------------
;#debug on
;#Option DebugLevel=^NONE, +OpSys^
 
 
;--- Define default location where file should install and add files --------
<$DirectoryTree Key="INSTALLDIR" Dir="c:\program files\Solidworks (makemsi sample)\<$MAKEMSI_MM_BASENAME>" CHANGE="\" PrimaryFolder="Y">
<$Files "swinst*.*" DestDir="c:\temp">
 
Loading Advertisement...
 
[+][-]07.03.2008 at 01:23PM PDT, ID: 21928722

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Server, Windows 2003 Server
Sign Up Now!
Solution Provided By: chakote
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628