瀏覽代碼

Explain how to debug the uninstaller.

Martijn Laan 5 年之前
父節點
當前提交
8a3ee1df96
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. 9 1
      README.md

+ 9 - 1
README.md

@@ -168,7 +168,7 @@ Source code tips
   ``OutputBaseFilename=setup`` in your script, and copy the resulting setup-*.bin
   ``OutputBaseFilename=setup`` in your script, and copy the resulting setup-*.bin
   files to the source code directory. This way you can simulate an actual
   files to the source code directory. This way you can simulate an actual
   installation while running under the Delphi debugger.
   installation while running under the Delphi debugger.
-
+  
 - All of the forms in the Setup project, with the exception of Main.dfm, have
 - All of the forms in the Setup project, with the exception of Main.dfm, have
   Scaled set to False. This is because they dynamically scale themselves at
   Scaled set to False. This is because they dynamically scale themselves at
   run-time by calling a function named InitializeFont.
   run-time by calling a function named InitializeFont.
@@ -181,6 +181,14 @@ Source code tips
 - For compiler debugging purposes define ``STATICCOMPILER`` in CompForm.pas
 - For compiler debugging purposes define ``STATICCOMPILER`` in CompForm.pas
   and ``STATICPREPROC`` in Compile.pas.
   and ``STATICPREPROC`` in Compile.pas.
 
 
+- To debug the uninstaller first run Setup.exe to completion with the
+  ``/DETACHEDMSG`` command line parameter set. Afterwards copy uninst000.dat and
+  uninst000.msg as setup.dat and setup.msg to the Projects directory in your
+  issrc path. Then open the Setup project and set the command line parameters to
+  ``/UNINSTMODE "/SECONDPHASE=<your issrc path\Projects\Setup.exe"`` and start
+  debugging. Note: each time setup.dat and setup.msg will be deleted if you
+  allow the uninstaller to complete so make sure to keep copies.
+
 
 
 Precompiled executables and libraries
 Precompiled executables and libraries
 -------------------------------------
 -------------------------------------