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: How to writescript to run a .cmd file or I installshield detects .cmd file
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 30, 2010
04:39 AM
How to writescript to run a .cmd file or I installshield detects .cmd file
Hi I have group of files which must be copied to the particular location. I wrote script in .cmd which copies all files to the particular location . I want to know when i add all files in Application files in installshield including "install.cmd" Is their any way that when i run setup it must run "install.cmd" Or Is their any other way to achive it
Please do reply
Thanks
Santosh:confused:
Please do reply
Thanks
Santosh:confused:
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 30, 2010
11:35 AM
Simply adding an install.cmd file as an application file will not cause it to be executed during the installation. It will just be treated as a file that needs to be installed.
You should look into using a custom action to run the CMD file (perhaps with an EXE - Path referencing a directory custom action).
Ideally you should only use such a custom action if the built-in Windows Installer functionality will not be sufficient to accomplish the same thing.
You should look into using a custom action to run the CMD file (perhaps with an EXE - Path referencing a directory custom action).
Ideally you should only use such a custom action if the built-in Windows Installer functionality will not be sufficient to accomplish the same thing.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 30, 2010
11:21 PM
Add cmd file in to Support Files. While installation this file will come in the SUPPORTDIR (%tmp%\{Product Code GUID} folder). You can call this file using custom aciton. This cmd file not get installed and removed after installation or it is interrupted.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 01, 2010
01:11 AM
Hi Binesh and Ajay
Can you explain me in detail about "custom action to run the CMD file."
Thanks
Santosh Patil
Can you explain me in detail about "custom action to run the CMD file."
Thanks
Santosh Patil
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 23, 2010
02:22 AM
you can find information about custom action in the Installshield Help. Try to use 'LaunchAppAndWait' function in the custom action.