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: Unable to run 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
‎Mar 19, 2009
09:34 AM
Unable to run custom action
Hi,
I am newly developing an Basic MSI project, i am unable to execute custom action scripts....steps i performed on a sample project
1. Opened a new project(Basic MSI)
2. Created a new custom action with just a 'MessageBox'
3. Assigned that custom action to a dialog box. u can see the settings below:
pls suggest me what to do?
I am newly developing an Basic MSI project, i am unable to execute custom action scripts....steps i performed on a sample project
1. Opened a new project(Basic MSI)
2. Created a new custom action with just a 'MessageBox'
3. Assigned that custom action to a dialog box. u can see the settings below:
pls suggest me what to do?
(11) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 19, 2009
10:20 AM
You have to right click on event "DoAction" and move it up. It has to be before "NewDialog" event for your custom action to run.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 19, 2009
10:33 AM
Hi vgorantla,
Thanks for your replay, it should work with your replay...... but still i am facing the same issue.:(
fyi....
without executing the script(and next dialog screens), installer is showing "The installer was interupted before ............"
Thanks for your replay, it should work with your replay...... but still i am facing the same issue.:(
fyi....
without executing the script(and next dialog screens), installer is showing "The installer was interupted before ............"
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 19, 2009
10:43 AM
In your custom action properties change the ReturnProcessing value from Synchronous (Check Exit Code) to Synchronous (Ignores Exit Code) and see if it helps.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 19, 2009
11:21 AM
Hi vgorantla,
Thank you once again. Now my installer is showing next dialogs but its not executing the script.... i put a MessageBox in the script, but installer is not showing that...
Is anyother option i have to change?
Thank you once again. Now my installer is showing next dialogs but its not executing the script.... i put a MessageBox in the script, but installer is not showing that...
Is anyother option i have to change?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 20, 2009
07:51 AM
Hi vgorantla,
Can you replay to my question? im waiting for your replay 😞
it takes seconds to replay,
it save days to complete my work...
Can you replay to my question? im waiting for your replay 😞
it takes seconds to replay,
it save days to complete my work...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 22, 2009
08:16 AM
Send me your setup.rul file to my email address vgorantla@gmail.com and I may be able to help.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 24, 2009
06:09 PM
Perhaps post the custom action code?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 28, 2009
07:44 AM
Hi,
sorry for the late replay, my script is having only two lines of code... but i am unable to execute it(in debug mode also)
my function:
function copyFiles()
begin
MessageBox("in files copy",INFORMATION);
CopyFile(SRCDIR^"GlobalAssemblyCache\\GAC_FW\\*.*", INSTALLDIR ^ "\\2.0.0\\Bin*.*");
CopyFile(SRCDIR^"GlobalAssemblyCache\\GAC_MI\\*.*", INSTALLDIR ^ "5.0.0\\Bin\\*.*");
end;
even the messagebox also not displayed.........
i am calling this function after 'InstallFiles' action....
sorry for the late replay, my script is having only two lines of code... but i am unable to execute it(in debug mode also)
my function:
function copyFiles()
begin
MessageBox("in files copy",INFORMATION);
CopyFile(SRCDIR^"GlobalAssemblyCache\\GAC_FW\\*.*", INSTALLDIR ^ "\\2.0.0\\Bin*.*");
CopyFile(SRCDIR^"GlobalAssemblyCache\\GAC_MI\\*.*", INSTALLDIR ^ "5.0.0\\Bin\\*.*");
end;
even the messagebox also not displayed.........
i am calling this function after 'InstallFiles' action....
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 29, 2009
01:15 AM
Hi,
I observed that ISSetup.dll is not getting created....... is this is the reason for not executing Custom Actions?
I observed that ISSetup.dll is not getting created....... is this is the reason for not executing Custom Actions?
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 30, 2009
04:16 PM
Your custom action is targeting a function named "MyFunction" exported from your InstallScript code. Do you have a function named "MyFunction" in your InstallScript code, is it exported with the export keyword, and does it have 1 parameter of type HWND?
The InstallScript Code you posted doesn't comply with the requirements necessary to launch an InstallScript custom action. It should look more similar to:
export prototype MyFunction(HWND);
function MyFunction(hMSI)
begin
// insert code here
end;
[[ not tested to compile, but is the general idea ]]
You may also find more helpful information in various help articles related to InstallScript and InstallScript Custom Actions. Searching for either term at support.installshield.com should provide useful results.
The InstallScript Code you posted doesn't comply with the requirements necessary to launch an InstallScript custom action. It should look more similar to:
export prototype MyFunction(HWND);
function MyFunction(hMSI)
begin
// insert code here
end;
[[ not tested to compile, but is the general idea ]]
You may also find more helpful information in various help articles related to InstallScript and InstallScript Custom Actions. Searching for either term at support.installshield.com should provide useful results.