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
- :
- Debug a patch
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
‎Sep 24, 2009
02:07 AM
Debug a patch
How do I go about debugging a patch - specifically installscript?
I've been happily debugging minor upgrades and major upgrades with
"\\mypc\is\product\config\release\DiskImages\DISK1\setup.exe" /d""\\mypc\is\product\script files"
But what do I do for a patch build so i can debug my script in OnPatchUIAfter?
I've been happily debugging minor upgrades and major upgrades with
"\\mypc\is\product\config\release\DiskImages\DISK1\setup.exe" /d""\\mypc\is\product\script files"
But what do I do for a patch build so i can debug my script in OnPatchUIAfter?
(8) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 24, 2009
09:35 PM
If your script contains OnPatchUIAfter you can usually set a breakpoint in the function when the debugger first loads to make sure the it stops there. If this event isn't in your script, it will not be possible to debug it.
Note that OnPatchUIBefore and OnPatchUIAfter are only called for InstallScript MSI projects, not pure InstallScript projects (InstallScript uses OnUpdateUIBefore and OnUpdateUIAfter for updates/diff media).
Note that OnPatchUIBefore and OnPatchUIAfter are only called for InstallScript MSI projects, not pure InstallScript projects (InstallScript uses OnUpdateUIBefore and OnUpdateUIAfter for updates/diff media).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 27, 2009
06:17 PM
My problem is the debugger never loads.
I call
"\\mypc\is\product\PatchConfiguration1\Patch\update.exe" /d""\\mypc\is\product\script files"
But the debugger never shows - I just see all my install dialogs/progress. There is not chance to put in the breakpoint or step through etc.
I call
"\\mypc\is\product\PatchConfiguration1\Patch\update.exe" /d""\\mypc\is\product\script files"
But the debugger never shows - I just see all my install dialogs/progress. There is not chance to put in the breakpoint or step through etc.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 28, 2009
11:19 AM
Is the debugger registered on the machine you are trying to debug on? Also, is the setup you are trying to debug being launched with admin privileges (the debugger will not launch if this is not the case due to COM security)?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 28, 2009
06:30 PM
debugger is registered and I am logged in as local admin on a vm image.
If I run the debugger for the minor upgrade build with
"\\mypc\is\product\CDROM\Release\Diskimages\disk1\setup.exe" /d""\\mypc\is\product\script files"
it all works, but of course, that doesn't call OnPatchUIBefore/AFter. It calls OnResumeUIBefore/After.
So I know debugger is working. I just can't get it to work for the actual patch build.
If I run the debugger for the minor upgrade build with
"\\mypc\is\product\CDROM\Release\Diskimages\disk1\setup.exe" /d""\\mypc\is\product\script files"
it all works, but of course, that doesn't call OnPatchUIBefore/AFter. It calls OnResumeUIBefore/After.
So I know debugger is working. I just can't get it to work for the actual patch build.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 29, 2009
11:46 AM
The patch events are only run if a patch is being applied to an existing product. If you are seeing the resume events run (OnResumeUIBefore/OnResumeUIAfter), this would indicate you are running either a small update or minor upgrade. A patch would need to be built from this upgrade and the base setup package using the Patch Design view and then the patch would need to be applied to an existing installation for the patch events to be triggered at runtime.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 29, 2009
06:25 PM
Perhaps I'm not explaining myself very well.
I build a minor upgrade and run the debugger to check that all is working
"\\mypc\is\product\CDROM\Release\Diskimages\disk1\setup.exe" /d""\\mypc\is\product\script files"
The debugger is fired and I can step into OnResumeUIBefore/After as expected.
I then do a patch build and create an update.exe
I run the debugger so I can step into OnPatchUIBefore/After
"\\mypc\is\product\PatchConfiguration1\Patch\update.exe" /d""\\mypc\is\product\script files"
But when calling this, the script debbugger is never launched. I have proven that my debugger is installed and regsitered as I could launch it on my previous test on the minor upgrade.
I also believe the syntax to call the debugger is accurate, however the debugger is never launched. The update.exe is launched and executes, but no debubber is ever displayed.
I build a minor upgrade and run the debugger to check that all is working
"\\mypc\is\product\CDROM\Release\Diskimages\disk1\setup.exe" /d""\\mypc\is\product\script files"
The debugger is fired and I can step into OnResumeUIBefore/After as expected.
I then do a patch build and create an update.exe
I run the debugger so I can step into OnPatchUIBefore/After
"\\mypc\is\product\PatchConfiguration1\Patch\update.exe" /d""\\mypc\is\product\script files"
But when calling this, the script debbugger is never launched. I have proven that my debugger is installed and regsitered as I could launch it on my previous test on the minor upgrade.
I also believe the syntax to call the debugger is accurate, however the debugger is never launched. The update.exe is launched and executes, but no debubber is ever displayed.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2009
12:57 PM
Do you have the OnBegin event in your script? If not, try adding it and see if the debugger breaks there when running the patch. If it does, set a breakpoint in OnPatchUIBefore and OnPatchUIAfter.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2009
07:46 PM
Yes, I have an OnBegin() function. It is executed (as I put a MsgBox in it) but the debugger is never shown.