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
[ - ] Hide Comments

so that the conversation will remain readable.
Answer this question
or Comment on this question for clarity
Answers
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.
Please log in to comment
Comments