Summary
Use Visual Studio 2010 to construct 64 bit .NET Application(exe/dll) for testing managed code custom action.Synopsis
Use Visual Studio 2010 to construct 64 bit .NET Application(exe/dll) for testing managed code custom action.
Discussion
Enable Visual Studio to build 64-bit
(1) Perform a full installation of Visual Studio 2010 or, during a Custom installation, select the x64 Compilers and Tools check boxes. You can expect to find 64-bit versions of some components, and also use tools that are specific to 64-bit development when performing the full install of Visual Studio 2010.
Explicitly set 64-bit platform using sample shipped with InstallShield 2010 and build sample
Explicitly set 64-bit platform using sample shipped with InstallShield 2010 and build sample
(2) Open Visual Studio 2010
(3) Open sample solution: File | Open | Project/Solution | <path to installshield>\Samples\WindowsInstaller\Managed Custom Actions\SampleClassLibrary\SampleClassLibrary.sln
(4) Follow steps in Visual Studio Conversion Wizard
(5) Using the Visual Studio Solution Explorer, right click Solution, select 'Configuration Manager'.
(6) Go to 'Active Solution Platform' dropdown, select 'New'.
(7) In the 'New Solution Platform' dialog select 'New' platform 'x64'.
(8) Click OK
(9) Build solution (F7)
(3) Open sample solution: File | Open | Project/Solution | <path to installshield>\Samples\WindowsInstaller\Managed Custom Actions\SampleClassLibrary\SampleClassLibrary.sln
(4) Follow steps in Visual Studio Conversion Wizard
(5) Using the Visual Studio Solution Explorer, right click Solution, select 'Configuration Manager'.
(6) Go to 'Active Solution Platform' dropdown, select 'New'.
(7) In the 'New Solution Platform' dialog select 'New' platform 'x64'.
(8) Click OK
(9) Build solution (F7)
Add InstallShield project to solution
(10) Right Click Solution | Select 'Add' | New Project
(11) InstallShield 2010 Projects
(12) Select 'Basic MSI Project (InstallShield 2010 Projects)
Step: Add a feature and component
(11) InstallShield 2010 Projects
(12) Select 'Basic MSI Project (InstallShield 2010 Projects)
Step: Add a feature and component
(13) Navigate to Organization | Setup Design
(14) Right click 'Setup Design' select 'New Feature'
(15) Right click 'NewFeature1' select 'New Component'
(16) Highlight 'Files' and add the sample managed dll file (SampleClassLibrary.dll) based on your solution build in step #9
Step: Add custom action
(14) Right click 'Setup Design' select 'New Feature'
(15) Right click 'NewFeature1' select 'New Component'
(16) Highlight 'Files' and add the sample managed dll file (SampleClassLibrary.dll) based on your solution build in step #9
Step: Add custom action
(17) Navigate to Behavior and Logic | Custom Actions and Sequences
(18) Right click 'Custom Actions'
(19) Select 'Custom Action Wizard'
(20) On the Action Type panel | Type dropdown select 'Call a public method in a managed assembly'
(21) On the Action Type panel | Location dropdown select 'Stored in the Binary table'
(22) On the Action Parameters panel Browse to the Source. This is expected to be the file built in step #9: <PATH_TO_DEBUG_FILES>\SampleClassLibrary.dll
(23) On the Managed Method Definition panel select 'Browse'
(24) Select 'SampleClassLibrary.SimpleWrapper' -> 'System.Windows.Forms.DialogResult Note(String caption, String message)
(25) Specify argument values [ProductName] for the parameter String caption
(26) Specify argument values 'Version [ProductVersion] installed by InstallShield' for the parameter String message
(27) On the Additional Options panel set Return Processing: Synchronous (Check exit code)
(28) On the Respond Options panel set In-Script Execution to Immediate Execution
(29) On the Respond Options panel set Execution Scheduling to Always Execute
(30) On the Insert into Sequence panel set Install UI Sequence to After Cost Finalize
(31) On the Insert into Sequence pane set the Install UI Condition to NOT Installed
(32) Select Finish
(33) Build solution
Note: [ProductName] is substituted and [ProductVersion] is not. This is because a simple property reference is retrieved, but a full string is not. The string is equivalent to the same one surrounded by double quotes ?Version [ProductVersion] installed by InstallShield? which will more clearly avoid any property substitution.
(18) Right click 'Custom Actions'
(19) Select 'Custom Action Wizard'
(20) On the Action Type panel | Type dropdown select 'Call a public method in a managed assembly'
(21) On the Action Type panel | Location dropdown select 'Stored in the Binary table'
(22) On the Action Parameters panel Browse to the Source. This is expected to be the file built in step #9: <PATH_TO_DEBUG_FILES>\SampleClassLibrary.dll
(23) On the Managed Method Definition panel select 'Browse'
(24) Select 'SampleClassLibrary.SimpleWrapper' -> 'System.Windows.Forms.DialogResult Note(String caption, String message)
(25) Specify argument values [ProductName] for the parameter String caption
(26) Specify argument values 'Version [ProductVersion] installed by InstallShield' for the parameter String message
(27) On the Additional Options panel set Return Processing: Synchronous (Check exit code)
(28) On the Respond Options panel set In-Script Execution to Immediate Execution
(29) On the Respond Options panel set Execution Scheduling to Always Execute
(30) On the Insert into Sequence panel set Install UI Sequence to After Cost Finalize
(31) On the Insert into Sequence pane set the Install UI Condition to NOT Installed
(32) Select Finish
(33) Build solution
Note: [ProductName] is substituted and [ProductVersion] is not. This is because a simple property reference is retrieved, but a full string is not. The string is equivalent to the same one surrounded by double quotes ?Version [ProductVersion] installed by InstallShield? which will more clearly avoid any property substitution.
Was this helpful?
Related Articles
Create 64bit Non-Managed Code Application 3Number of Views Debug a Managed Code Custom Action 3Number of Views Register Assembly (RegAsm.exe) For Both 32 & 64 Bit Using a Custom Action 7Number of Views Deleting a 64 bit Windows Registry Entry via an InstallScript Custom Action 5Number of Views Create a 64-bit Windows Registry Entry via an InstallScript Custom Action 9Number of Views
Revenera Assistant
Online
Hi, I am Reva - Ask me anything.
Updates
No new updates
Chat
Home
Updates
/**/
Thanks for the feedback!
Your feedback has been saved.Rate this response:
1
2
3
4
5
Add Additional feedback ( Optional )
0/240
English
English
Language changed successfully
Something went wrong
Email sent successfully
Something went wrong
Case create successfully
Are you sure you want to cancel
the case creation?
Please select a product to submit the case.
Please select a product version to submit the case.
0/255
Upload Attachment
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to cancel the case creation?
Case closed successfully
File Upload
Maximum file size allowed is 3 MB.
File type not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
© 2026 Flexera Software. All Rights Reserved.
Case id: 00001065
Activity: Status change: 2 hours ago