Help - Search - Members - Calendar
Full Version: Need advice on Deleting setup file after installation
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
clivebuckwheat
Hi

I am trying to install a program, it installs fine, but now I would like to delete the setup file of the program I just installed. Is there something I need to do to ensure my batch file doesn't delete the setup file, as my batch file is trying to install it?. I would also like to delete the batch file as well is this possible?.
Shark007
QUOTE (clivebuckwheat @ Sep 6 2008, 02:31 PM) *
Hi

I am trying to install a program, it installs fine, but now I would like to delete the setup file of the program I just installed. Is there something I need to do to ensure my batch file doesn't delete the setup file, as my batch file is trying to install it?. I would also like to delete the batch file as well is this possible?.
example contents of a batchfile install which will delete itself
CODE
start /wait installer.exe /s
del installer.exe
del %0


shark
digital john
QUOTE (Shark007 @ Sep 6 2008, 09:40 PM) *
QUOTE (clivebuckwheat @ Sep 6 2008, 02:31 PM) *
Hi

I am trying to install a program, it installs fine, but now I would like to delete the setup file of the program I just installed. Is there something I need to do to ensure my batch file doesn't delete the setup file, as my batch file is trying to install it?. I would also like to delete the batch file as well is this possible?.
example contents of a batchfile install which will delete itself
CODE
start /wait installer.exe /s
del installer.exe
del %0


shark


you coud add: del /f /q this force the installation file to delete after the installation.
the f = force and q= quiet
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.