Jump to content

Need advice on Deleting setup file after installation


clivebuckwheat

Recommended Posts

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

Link to comment
Share on other sites


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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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