Newbie needs help getting an .msi to write and install only to a network drive

Wise Newbie's picture

Hello. I am quite new to Wise. I have files from a CD that I need to repackage and have it install to a specified Network drive. I am using Wise package studio, The files I need to repackage are an .msi and it's supporting files. It must write everything to the U:. I would like to bypass the screen that allows them to change that. Help !! Thanks in advance!

CygnusX1's picture

You will want to make a

You will want to make a transform for your changes.  Never modify the vendor's .msi.  You can use the property TARGETDIR to install to U:  Make your modifications and install silently to not show the installation sialogs.  Or you can hide the installation windows by using the dialog screen inside the editor.

Wise Newbie's picture

Ok.. Thats the problem, I

Ok.. Thats the problem, I didn't make a transform, I had the TARGETDIR changed. So I will try that. Hopw it works! Thanks so much..

piyushnasa's picture

Best way to do this

You can install files to multiple drives using single MSI. You do not require custom actions or scripts to do that. You just need to put some tricks in the directory table. So here it goes...

Suppose you need to install some files on D Drive, some on E Drive and some on F Drive.

First create property in property table for these drives.

You can also use Set Property custom action if you do not want to hardcode it and use some environment variables from your builds.

Now in Directory table put the following entries:
imagebrowser image

Notice that Directory_Parent is kept blank.

Now if you go to the file section of installation expert, you can see these folders separately on the top. You can add your folders and files as desired now in these.

At installation time the property will resolve the drive and make your files to install at the correct location.

Note: Make sure to use this only when the drives you mention are present on destination machines.
This procedure might give you ICE error, but you can ignore those. It will have no impact on the working of MSI. 

You can also see my post here:
www-secure.symantec.com/connect/blogs/installing-files-multiple-drives

Piyush Nasa
Altiris Certified Professional (ACP)

VBScab's picture

...all the while remembering

...all the while remembering that, if your deployment system uses the local System account to access the workstation, it will have no network access. If your users are deploying the package, they'll need appropriate rights to the network drive.

Don't know why 'x' happened? Want to know why 'y' happened? Use ProcMon and it will tell you.
Think about using http://www.google.com before posting.