/build/static/layout/Breadcrumb_cap_w.png

Active setup command line.

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

Answers (2)

Posted by: rileyz 11 years ago
Red Belt
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.

Posted by: talonsprem87 11 years ago
10th Degree Black Belt
0

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

 
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