/build/static/layout/Breadcrumb_cap_w.png

WPS - install file to C:\ when INSTALLDIR is not C:\

I'm being REALLY thick here, I know, but what the hell...I'm in that "can't see the wood for the trees" position, plus it won't be the first time I've put my ignorance on public display.

INSTALLDIR is pointing to a folder beneath 'C:\Program Files'. Mr Stupid Vendor has decided that his Even More Stupid Application *HAS* to have a TXT file in the root of C:\ (no, it can't be moved elsewhere...) with write access. So, my problem is, short of changing INSTALLDIR to be C:\ [shudder] how do I get this file included in the install? In WPS, there's no way using the GUI (that I can work out) to choose C:\. I tried adding a file component 'manually' and editing the relevant tables directly but again there's no way to choose the root folder as the target directory. I resorted to a script but that fails with 'Permission denied', even though that same script run externally to the MSI executes flawlessly using the same credentials.

0 Comments   [ + ] Show comments

Answers (4)

Posted by: Coriolus 16 years ago
Orange Belt
1
I usally just add a component and make target "ROODRIVE" with ROOTDRIVE also being a property in the Property table specifying C:\ as the value.
Posted by: anonymous_9363 16 years ago
Red Belt
0
As you were....

I used 'WindowsFolder' to create the component and then edited the Component table to use TARGETDIR instead.
Posted by: matrixtushar 16 years ago
Purple Belt
0
Hi,

Coriolus is absolutely on target! this can be a very nice method to do that, only if your 'perfectionist' attitude finds another problem here...
Posted by: matrixtushar 16 years ago
Purple Belt
0
you can also create a property in which you can get the value for the environment variable for SystemDrive in which you will get C:\ automatically instead of hardcoding C: for your ROOTDRIVE Property...
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