有没有办法调试使用installshield universal创建的安装程序可执行文件?

时间:2022-06-01 17:55:57

I have created a windows executable with some custom actions and some UI stuffs.

我创建了一个带有一些自定义操作和一些UI东西的Windows可执行文件。

I am facing a strange behavior with the installable.

我正面临着可安装的奇怪行为。

I tried probing through the code and kracking the installer as much as I can, but I did not find any idea why the strange behavior is available.

我尝试探测代码并尽可能地破解安装程序,但我并不知道为什么奇怪的行为可用。

So, I wanted to debug the installer at every point of code execution in the Custom Action for which I tried writing those values I require to a logger. But unfortunately my logger will get created after the installation at which point I will not be in a position to run it again.

因此,我想在自定义操作中的每个代码执行点调试安装程序,我尝试将这些值写入记录器。但不幸的是,我的记录器将在安装后创建,此时我将无法再次运行它。

So, can anyone suggest how to debug it while the installable is under execution?

那么,有人可以建议如何在安装程序执行时调试它吗?

1 个解决方案

#1


0  

I've tried but couldn't get a debugger working with Installshield universal.

我已经尝试但无法使用Installshield universal调试器。

My workaround was to add a lot of debugging messages and to use VMware. Install VMware and create the test machine as a virtual server. I configured the virtual server with all the prerequisites, rebooted it and then ran a snapshot.

我的解决方法是添加大量调试消息并使用VMware。安装VMware并将测试计算机创建为虚拟服务器。我为虚拟服务器配置了所有先决条件,重新启动它然后运行快照。

After the snap shot I'd run the install script, wait for the errors and the log files. Then I'd use the VMware 'revert to snapshot' function to go back to a clean instance of the test server and start investigating the error messages from the logs.

快照后我会运行安装脚本,等待错误和日志文件。然后,我将使用VMware的“恢复快照”功能返回到测试服务器的干净实例,并开始调查日志中的错误消息。

#1


0  

I've tried but couldn't get a debugger working with Installshield universal.

我已经尝试但无法使用Installshield universal调试器。

My workaround was to add a lot of debugging messages and to use VMware. Install VMware and create the test machine as a virtual server. I configured the virtual server with all the prerequisites, rebooted it and then ran a snapshot.

我的解决方法是添加大量调试消息并使用VMware。安装VMware并将测试计算机创建为虚拟服务器。我为虚拟服务器配置了所有先决条件,重新启动它然后运行快照。

After the snap shot I'd run the install script, wait for the errors and the log files. Then I'd use the VMware 'revert to snapshot' function to go back to a clean instance of the test server and start investigating the error messages from the logs.

快照后我会运行安装脚本,等待错误和日志文件。然后,我将使用VMware的“恢复快照”功能返回到测试服务器的干净实例,并开始调查日志中的错误消息。