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

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
As you were....

I used 'WindowsFolder' to create the component and then edited the Component table to use TARGETDIR instead.
Answered 10/26/2007 by: VBScab
Red Belt

Please log in to comment
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.
Answered 10/26/2007 by: Coriolus
Orange Belt

Please log in to comment
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...
Answered 10/27/2007 by: matrixtushar
Purple Belt

Please log in to comment
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...
Answered 10/27/2007 by: matrixtushar
Purple Belt

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