StubPath Command
I am trying to copy an *xml file through ActiveSetup.
copy "ABC.xml" "%USERPROFILE%\Local Settings\Application Data\Computer\ABC.xml" /Y works fine with the batch file but when i copy this into my ActiveSetup StubPath it doesn't work. What am i doing wrong here?
Thanks in advance guys!!!
Thanks in advance guys!!!
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
michaelnowell
15 years ago
I'd say that when you run your command from the batch file, the ABC.xml file is in the same directory as the batch file?
In your active setup command, put then full path to the ABC.xml as it won't know what the working directory is.
E.g. copy "%PATHFORSOURCE%\ABC.xml" "%USERPROFILE%\Local Settings\Application Data\Computer\ABC.xml" /Y
That should do the trick.
Alternatively, if you're using a MSI, a normal active setup should handle this for you if you've setup your MSI correctly.
In your active setup command, put then full path to the ABC.xml as it won't know what the working directory is.
E.g. copy "%PATHFORSOURCE%\ABC.xml" "%USERPROFILE%\Local Settings\Application Data\Computer\ABC.xml" /Y
That should do the trick.
Alternatively, if you're using a MSI, a normal active setup should handle this for you if you've setup your MSI correctly.
Posted by:
MsiCreator
15 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.