Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42722

Create a script to replace files in any install directory

$
0
0
Hi. Here is what I would like to do. I have a program that I want to make so that the pluggins I have for it will be installed after the program has been installed by using a winrar sfx. What the sfx will do is install the program from its usual installer and after the install completes it will copy files in its temp unpack directory too a folder which contains the install. My problem is that most of the installers including the one I have can be installed in any directory the user chooses so I want it to set the destination according too the installed directory of the program. There is another small problem. Some peoples drive letters differ so it will also need to copy anther file into the program data folder on the O.S. Drive. Here is something that I was thinking would work but don't know if it will.
Code:

"%Program name%\Pluggins"
For the install directory
and
Code:

%Program Data%\Program name\
I don't know what the coding is as yet in vbs but I know it in command prompt but I don't want too use command prompt
Could somebody please help me out as soon as my friend wants the program with the pluggins but he is not as good with computers so I fear he may screw up the whole thing while trying to copy the files
P.S. The program is freeware if there is anyone who wants too know

Viewing all articles
Browse latest Browse all 42722

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>