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

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
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.
Answered 09/10/2009 by: michaelnowell
Second Degree Blue Belt

Please log in to comment
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"
Answered 09/10/2009 by: MsiCreator
Senior Yellow Belt

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