No announcement yet.

Remove folder on reboot for appFolder

  • Filter
  • Time
  • Show
Clear All
new posts

  • Remove folder on reboot for appFolder

    Hi, I noticed that setup factory uninstall log always has Remove folder on reboot xxxx for the %AppFolder% as the 2nd last line
    [04/27/2022 13:02:55] Success Run uninstall event: On Shutdown
    [04/27/2022 13:02:55] Success Remove uninstall support file: C:\Program Files (x86)\MyTestApp 3\Uninstall\IRIMG1.JPG
    [04/27/2022 13:02:55] Success Remove uninstall support file: C:\Program Files (x86)\MyTestApp 3\Uninstall\IRIMG2.JPG
    [04/27/2022 13:02:55] Success Remove uninstall data file: C:\Program Files (x86)\MyTestApp 3\Uninstall\uninstall.dat
    [04/27/2022 13:02:55] Success Remove uninstall config file: C:\Program Files (x86)\MyTestApp 3\Uninstall\uninstall.xml
    [04/27/2022 13:02:55] Success Remove uninstall CP entry from Registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\MyTestApp 31.0
    [04/27/2022 13:02:55] Success Remove folder: C:\Program Files (x86)\MyTestApp 3\Uninstall
    [04/27/2022 13:02:55] Success Remove folder on reboot: C:\Program Files (x86)\MyTestApp 3
    [04/27/2022 13:02:55] Notice Exit uninstall process (Return code: 0)

    I checked the folder and noticed that the folder has already deleted but the uninstall log always show Remove folder on reboot xxx.

    I am concern about this line of text as there is possibility that if user uninstall and then install again without rebooting the machine, the installation folder may be deleted after rebooting

    How to resolve this problem?

    I have attached the source code, the install log and uninstall log

    Attached Files

  • #2
    actually, the folder that has the problem is the "uninstall folder" not the app folder