/build/static/layout/Breadcrumb_cap_w.png

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!!!

0 Comments   [ + ] Show comments

Answers (2)

Posted by: michaelnowell 14 years ago
Second Degree Blue Belt
0
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.
Posted by: MsiCreator 14 years ago
Senior Yellow Belt
0
you can try the same command using cmd.exe /c /s.
Modify stubpath accordingly

e.g. cmd.exe /c /s "c:\WINNT\system32\notepad.exe"
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