|
Answer» I am creating an automated, silent installer for all of my programs. This installer will be executed before Windows DESKTOP loads (setupcomplete.cmd)
I need to know how to specify the drive letter from which I am INSTALLING dynamically (such that it does not have to be hard-coded, e.g, e:\) The variable I'm using is not working reliably (where sometimes the path is not where the batch file is located). Any ideas?
This is what I have:
set mypath=%~dp0
start /wait %mypath%\7zip.msi /q installdir="C:\Program Files\7-Zip"
Regards,
JuanThee is a problem. Why do you want to hide what your are doing? That would SUGGEST that you bare trying to hack somebody's PC.
Users need to know when a system has been modified or updated. Why should you have the privilege of an exception?
What I am saying is Don't use setupcomplete.cmd for a batch TASK. Unless it is the best way n to do a job.
Add a Custom Script to Windows SETUP
|