Trying to copy a file to two target locations using active setup

 

here's the value i use in the registry under stubpath :

 

cmd /c md "%userprofile%\local settings\application data\faststone\fsc\" & md "%userprofile%\application data\faststone\fsc\" & COPY "c:\program files\faststone capture\fsc.db" "%userprofile%\local settings\application data\faststone\fsc\" & COPY "c:\program files\faststone capture\fsc.db" "%userprofile%\application data\faststone\fsc\"

 

command line wont execute in active setup, but works if i run it manually. Any idea why?

 

F.

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

This content is currently hidden from public view.
Reason: Removed by member request
For more information, visit our FAQ's.

0

Another way:

Use the DuplicateFile table.

Im not going to reinvent the wheel, but look here (:
http://www.itninja.com/blog/view/a-general-approach-to-software-package-using-duplicatefiles
If you have a entry point great! Otherwise you will be stuck with active setup, not so great but ok.

Regarding your question: Ive never seen active setup used like that before with the stubpath key.

Answered 04/09/2013 by: rileyz
Red Belt

Please log in to comment
0

why dont u write a vbscript which does all of the above operations and place the vbs in the active setup. Sounds good??

Answered 04/08/2013 by: talonsprem87
Tenth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share