Jump to content

Need advice on Deleting setup file after installation


Recommended Posts

Posted

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?.


Posted
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

start /wait installer.exe /s
del installer.exe
del %0

shark

Posted
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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...