Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Delete install folder after unattended install

Featured Replies

When the install is finished can I then delete the install folder that the inst. have made on C: ??

Can I do it with the cmd file that I use to install the oem folders with??


use something like this:

del \*FOLDERNAME* /s/q

run from root, like C:\

/s is for subdirectories

/q is no conformation/quite mode

  • Author

okay...thanks

But will I get problem when I ad new user accounts??

Am I right about, that they wont get the reg. tweaks then?

  • 1 month later...
  • Author

If i will use del \*FOLDERNAME* /s/q

can i then do it from my application.cmd as the last thing after installing all programs??

If yes.....

How do it have to look?

Like this:

application.cmd file.......

-

-

-

-

ECHO Applying Registry Tweaks...

REGEDIT /S %systemdrive%\install\RegTweaks.reg

ECHO.

del C:\*install* /s/q

echo

I think it's better to use RD (remove directory).

RD %systemdrive%\install /S /Q

Also, I'm not sure if you can use it from that batch file, since that batch file is probably in the folder you're trying to delete. If it doesn't work, you can try to add it to the registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce). Then it will run on next logon.

  • Author

Okay... :-)

The file is in this folder :-)))) Sorry...

RD %systemdrive%\install /S /Q

is this to be put in my reg. tweak or my sif file???

I'm not sure what you mean :-)

I'm a newbie...or a sort of....

It depends on what method you use to install.

If you use batch-files, then put the command as the last one (just before the EXIT) command. If you used the MSFN guide to make this, then probably the last part of start.cmd should look like this:

RD /S /Q %systemdrive%\Install

EXIT

  • Author

I think I will use the reg way to do it.

But where do i put the code

RD %systemdrive%\install /S /Q

In my reg tweak folder ???

Add this to a reg file:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"Cleanup"="cmd.exe /C RD %systemdrive%\install /S /Q"

And then make sure you import it to the registry somewhere. You can also use this code from a batch file:

REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /V Cleanup /D "cmd.exe /C RD %systemdrive%\install /S /Q"

I believe that should work :)

  • Author

Thanks...you have helped me a lot.

I will now try it....

  • Author

I have tryed to run this reg file and restart

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]

"Cleanup"="cmd.exe /C RD %systemdrive%\install /S /Q"

But the install folder is still there :-((

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce]

"Cleanup"="cmd /c rd %systemdrive%\\install /S /Q"

Well, the code looks right to me. If the code worked, you should see a command window for a brief moment after you logon. Also, you can make sure that the value was really imported by opening regedit and navigating to the key. Note that if the command was imported and executed, the value is probably gone (you will have to import the reg file again just to see if the value gets added to the registry).

@kenedy: you got a point there, forgot to mention that you might have to use 2 slashes.

Good luck, I'll be back in about 2 hours.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.