I have create an msi for Travel Control with WPS 6.0. During testing i noticed that the application needs a file in c:\ which the application creates the first time when it's been executed.

I copied that particular file to my packaging machine, opened the msi with WPS and wanted to add this file to the destination computer but noticed there is no c:\ or root is the destination pane.

Can anybody tell me how i can add this file to c:\ in WPS?

Every help will be appreciated.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
You could use the systemdrive environment variable. Use it in your MSI with [%systemdrive]

Also you can use the ROOTDRIVE property but make sure to set it to C:\ in the property table first.
Answered 07/14/2011 by: Teitan
Senior Purple Belt

Please log in to comment
0
Hi,
you can create a new component and select the desired file and under destination select as [WindowsVolume] & set a key file [;)].

Thanks,
VD
Answered 07/14/2011 by: venu.dusari
Senior Yellow Belt

Please log in to comment
0
Yes, correct. However, instead of WindowsVolume property, I'd suggest to make use of ROOTDRIVE property (by setting it to C:\). As you specifically want it to be copied to C:\
Answered 07/14/2011 by: SandeepPanat
Orange Senior Belt

Please log in to comment
0
I tried the [%systemdrive] option but as i'm not an experienced packager and have limited knowledge i ended up with the wrong result (C:\[%systemdrive]\file).

Here are the changes i made to my msi:
- open the msi with WPS
- in installation expert - files - i added the file from my computer to the windows directory in the destination pane
- in setup expert - components tab - i rightclicked the file - selected details - in the components details from the file i put [%systemdrive] in directory
- compiled the msi
Answered 07/14/2011 by: TalkingMarble
Orange Belt

Please log in to comment
2
Do like this

First check what is the parentdir for sourcedir in DIRECTORY table(It will be TARGETDIR)

Add a new component from setupeditor in components tab--->give the component name and in DIRCTORY give TARGETDIR and continue--->add the file from source path--->assighn it to a feauture and compile.

In the FILES view in installation expert the file should come under destination computer
Answered 07/14/2011 by: naveen.packager
Green Belt

Please log in to comment
0
ORIGINAL: naveen.packager

Do like this

First check what is the parentdir for sourcedir in DIRECTORY table(It will be TARGETDIR)

Add a new component from setupeditor in components tab--->give the component name and in DIRCTORY give TARGETDIR and continue--->add the file from source path--->assighn it to a feauture and compile.

In the FILES view in installation expert the file should come under destination computer


There is no SOURCEDIR entry in the DIRECTORY table. SOURCEDIR is only specified as the defaultdit in the TARGETDIR entry.
Answered 07/14/2011 by: TalkingMarble
Orange Belt

Please log in to comment
0
There is no SOURCEDIR entry in the DIRECTORY table. SOURCEDIR is only specified as the defaultdit in the TARGETDIR entry.
That's what I am speaking about. Do what I have said above and you will be done.
Answered 07/14/2011 by: naveen.packager
Green Belt

Please log in to comment
0
last time I had to do something like this I used a CA but I think naveen's suggestion is worth a look. Standard actions always better if the task can be thus managed.
Answered 07/14/2011 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
Here are the changes i made to my msi:
- open the msi with WPS
- in installation expert - files - i added the file from my computer to the windows directory in the destination pane
- in setup expert - components tab - i rightclicked the file - selected details - in the components details from the file i put [%systemdrive] in directory
- compiled the msi
[url=http://office2007use127.terapad.com/index.cfm?fa=contentNews.newsDetails&newsID=2299536&from=list&directoryId=558466]What Is The Document Inspector For Microsoft Office 2007[/url]
[url=http://office2007use127.momaroo.com/752630650/microsoft-office-2007-hold-off-on-upgrading/]Microsoft Office 2007 Hold Off On Upgrading[/url]
[url=http://office2007use127.centerblog.net/1-download-microsoft-office-2007-reaction]Download Microsoft Office 2007 Reaction[/url]
Answered 07/14/2011 by: jerry05031111
Yellow Belt

Please log in to comment
0
Its working, thanks everybody for their help.
Answered 07/15/2011 by: TalkingMarble
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity