This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Execute DOS command from Custom Action
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 03, 2011
01:48 PM
Execute DOS command from Custom Action
I want to execute a dos command in a custom action, like:
del file.txt
This behavior can be placed in a batch file and executed:
[SystemFolder]Cmd.exe /c "InstallService.bat"
But I'd like to avoid the batch file, if I can.
I've tried:
[SystemFolder]Cmd.exe /c "del file.txt"
but it fails.
del file.txt
This behavior can be placed in a batch file and executed:
[SystemFolder]Cmd.exe /c "InstallService.bat"
But I'd like to avoid the batch file, if I can.
I've tried:
[SystemFolder]Cmd.exe /c "del file.txt"
but it fails.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 14, 2011
01:34 PM
Try this
[SystemFolder]Cmd.exe /c del "[FileLocation]file.txt"
[FileLocation] = C:\Windows\xyz folder name
[SystemFolder]Cmd.exe /c del "[FileLocation]file.txt"
[FileLocation] = C:\Windows\xyz folder name