Jump to content

Why all cleanup stuff seperate from installs?


Recommended Posts

I notice that all RunOnceEX examples seem to do the install and perhaps some reg stuff as a single RunOnceEx group, but then cleanup like deleting the desktop shortcut is done en mass later. I would like to be able to do cleanup as part of the install, for two reasons.

1: I can create use the same few lines in another CMD to build a standaline installer.

2: I can build different RunOnceEX.CMDs for different client types, and not need a Cleanup.CMD that covers everything.

So, can this be done, and if so, why is it not common? Something along the lines of:

REG ADD %KEY%\010 /VE /D "Mozilla Firefox" /f

REG ADD %KEY%\010 /V 1 /D "msiexec.exe /i setup.msi /qb-" /f

REG ADD %KEY%\010 /V 2 /D "Firefox_cleanup.cmd" /f

Thanks,

Gordon

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