Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2009
    Posts
    6

    Uninstaller not running post uninstall action script

    Hi, I'm new here. I tried searching for an answer to my question, but either the answer isn't here or I just don't know enough to ask the right question.

    I created an installer to update some files in a video game. The installer backs up the files, and installs correctly. The weird part, is that on anyone else's computer, when the uninstaller is run, the new files are removed but the original files are not put back in place, rendering the game unplayable. This doesn't happen on either of my computers at home. I'm running Server 2003, while the testers are running XP and/or Windows 7.

    I found the following code online:

    Code:
    tFiles = UninstallData.GetItemList(UNINDATA_FILES);
    for nIndex, sName in tFiles do
    iData = UninstallData.GetItem(UNINDATA_FILES, sName);
    if iData.BackupFile ~= "" then
    File.Copy(iData.BackupFile, iData.Filename, false, true, false, true, nil);
    File.Delete(iData.BackupFile, false, false, true, nil);
    end
    end

    The last bit of my uninstall log looks like this.

    Code:
    [08/24/2009 01:04:41] Success	Remove file: D:\TDS\CONTENT\T3\Books\English\Tutorial13.sch
    [08/24/2009 01:04:41] Success	Remove file: D:\TDS\CONTENT\T3\Books\English\Tutorial12.sch
    [08/24/2009 01:04:41] Success	Remove file: D:\TDS\CONTENT\T3\Books\English\Tutorial11Hide.sch
    [08/24/2009 01:04:41] Success	Remove file: D:\TDS\CONTENT\T3\Books\English\Tutorial11.sch
    [08/24/2009 01:04:41] Success	Remove file: D:\TDS\CONTENT\T3\Books\English\Tutorial08.sch
    [08/24/2009 01:04:41] Success	Remove file: D:\TDS\CONTENT\T3\Books\English\Tutorial07.sch
    [08/24/2009 01:04:41] Success	Remove file: D:\TDS\CONTENT\T3\Books\English\Tutorial06.sch
    [08/24/2009 01:04:41] Success	Remove file: D:\TDS\CONTENT\T3\Books\English\Tutorial05.sch
    [08/24/2009 01:04:41] Success	Remove file: D:\TDS\CONTENT\T3\Books\English\Tutorial04.sch
    [08/24/2009 01:04:41] Success	Remove file: D:\TDS\CONTENT\T3\Books\English\Tutorial03.sch
    [08/24/2009 01:04:41] Success	Remove file: D:\TDS\CONTENT\T3\Books\English\Tutorial02.sch
    [08/24/2009 01:04:41] Success	Remove file: D:\TDS\CONTENT\T3\Books\English\Tutorial01.sch
    [08/24/2009 01:04:41] Success	Remove file: D:\TDS\CONTENT\T3\Books\English\Tutorial00b.sch
    [08/24/2009 01:04:41] Success	Remove file: D:\TDS\CONTENT\T3\Books\English\Tutorial00.sch
    [08/24/2009 01:04:41] Success	Remove file: D:\TDS\READ ME FIRST.htm
    [08/24/2009 01:04:41] Success	Remove shortcut: C:\Documents and Settings\Administrator\Start Menu\Programs\TAyalewT3MOD\Uninstall TAyalewT3MOD.lnk
    [08/24/2009 01:04:41] Success	Run uninstall event: On Post Uninstall
    [08/24/2009 01:04:41] Success	Display screen: Finished Uninstall
    [08/24/2009 01:04:42] Success	Run uninstall event: On Shutdown
    [08/24/2009 01:04:42] Success	Remove uninstall data file: D:\TDS\Uninstall\uninstall.dat
    [08/24/2009 01:04:42] Success	Remove uninstall config file: D:\TDS\Uninstall\uninstall.xml
    [08/24/2009 01:04:42] Success	Remove uninstall CP entry from Registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TAyalewT3MODTAyalewT3MOD.exe 1.0
    [08/24/2009 01:04:42] Success	Remove uninstall support file: D:\TDS\Uninstall\IRIMG1.JPG
    [08/24/2009 01:04:42] Success	Remove uninstall support file: D:\TDS\Uninstall\IRIMG2.JPG
    [08/24/2009 01:04:42] Success	Remove folder: D:\TDS\CONTENT\T3\Sounds\T.W.Ayalew
    [08/24/2009 01:04:42] Success	Remove folder: D:\TDS\READ ME FIRST_files
    [08/24/2009 01:04:42] Success	Remove folder: D:\TDS\System\Shaders
    [08/24/2009 01:04:42] Success	Remove folder: D:\TDS\Uninstall
    [08/24/2009 01:04:42] Notice	Exit uninstall process (Return code: 0)
    
    [09/08/2009 22:54:49] Success	Uninstall started: C:\WINDOWS\TAyalewT3MOD\uninstall.exe
    [09/08/2009 22:54:49] Notice	Setup engine version: 8.1.1006.0
    [09/08/2009 22:54:49] Notice	Product: TAyalewT3MOD, version TAyalewT3MOD.exe 1.0
    [09/08/2009 22:54:49] Success	Language set: Primary = 9, Secondary = 1
    [09/08/2009 22:54:49] Success	Include script: _SUF70_Global_Functions.lua
    [09/08/2009 22:54:49] Notice	Start project event: Global Functions
    [09/08/2009 22:54:49] Success	Run project event: Global Functions
    [09/08/2009 22:54:49] Success	Run uninstall event: On Startup
    [09/08/2009 22:54:49] Success	Display screen: Welcome to Uninstall
    [09/08/2009 22:54:50] Success	Run uninstall event: On Pre Uninstall
    [09/08/2009 22:54:50] Success	Display screen: One Progress Bar (While Uninstalling)
    [09/08/2009 22:54:50] Success	Remove shortcut: C:\Documents and Settings\Administrator\Start Menu\Programs\TAyalewT3MOD\Uninstall TAyalewT3MOD.lnk
    [09/08/2009 22:54:50] Success	Run uninstall event: On Post Uninstall
    [09/08/2009 22:54:50] Success	Display screen: Finished Uninstall
    [09/08/2009 22:54:51] Success	Run uninstall event: On Shutdown
    [09/08/2009 22:54:51] Success	Remove uninstall data file: D:\TDS\Uninstall\uninstall.dat
    [09/08/2009 22:54:51] Success	Remove uninstall config file: D:\TDS\Uninstall\uninstall.xml
    [09/08/2009 22:54:51] Success	Remove uninstall CP entry from Registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TAyalewT3MODTAyalewT3MOD.exe 1.0
    [09/08/2009 22:54:51] Success	Remove uninstall support file: D:\TDS\Uninstall\IRIMG1.JPG
    [09/08/2009 22:54:51] Success	Remove uninstall support file: D:\TDS\Uninstall\IRIMG2.JPG
    [09/08/2009 22:54:51] Notice	Exit uninstall process (Return code: 0)

    While the last bit of uninstall log from other users looks like this:

    Code:
    [08/30/2009 14:57:56] Success	Remove file: D:\Games\Thief\T3\CONTENT\T3\Books\English\Tutorial13.sch
    [08/30/2009 14:57:56] Success	Remove file: D:\Games\Thief\T3\CONTENT\T3\Books\English\Tutorial12.sch
    [08/30/2009 14:57:56] Success	Remove file: D:\Games\Thief\T3\CONTENT\T3\Books\English\Tutorial11Hide.sch
    [08/30/2009 14:57:56] Success	Remove file: D:\Games\Thief\T3\CONTENT\T3\Books\English\Tutorial11.sch
    [08/30/2009 14:57:56] Success	Remove file: D:\Games\Thief\T3\CONTENT\T3\Books\English\Tutorial08.sch
    [08/30/2009 14:57:56] Success	Remove file: D:\Games\Thief\T3\CONTENT\T3\Books\English\Tutorial07.sch
    [08/30/2009 14:57:56] Success	Remove file: D:\Games\Thief\T3\CONTENT\T3\Books\English\Tutorial06.sch
    [08/30/2009 14:57:56] Success	Remove file: D:\Games\Thief\T3\CONTENT\T3\Books\English\Tutorial05.sch
    [08/30/2009 14:57:56] Success	Remove file: D:\Games\Thief\T3\CONTENT\T3\Books\English\Tutorial04.sch
    [08/30/2009 14:57:56] Success	Remove file: D:\Games\Thief\T3\CONTENT\T3\Books\English\Tutorial03.sch
    [08/30/2009 14:57:56] Success	Remove file: D:\Games\Thief\T3\CONTENT\T3\Books\English\Tutorial02.sch
    [08/30/2009 14:57:56] Success	Remove file: D:\Games\Thief\T3\CONTENT\T3\Books\English\Tutorial01.sch
    [08/30/2009 14:57:56] Success	Remove file: D:\Games\Thief\T3\CONTENT\T3\Books\English\Tutorial00b.sch
    [08/30/2009 14:57:56] Success	Remove file: D:\Games\Thief\T3\CONTENT\T3\Books\English\Tutorial00.sch
    [08/30/2009 14:57:56] Success	Remove file: D:\Games\Thief\T3\READ ME FIRST.htm
    [08/30/2009 14:57:56] Success	Remove shortcut: C:\Users\b1k3rdude\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\TAyalewT3MOD\Uninstall TAyalewT3MOD.lnk
    [08/30/2009 14:57:56] Success	Run uninstall event: On Post Uninstall
    [08/30/2009 14:57:56] Success	Display screen: Finished Uninstall
    [08/30/2009 14:57:57] Success	Run uninstall event: On Shutdown
    [08/30/2009 14:57:57] Success	Remove uninstall data file: D:\Games\Thief\T3\Uninstall\uninstall.dat
    [08/30/2009 14:57:57] Success	Remove uninstall config file: D:\Games\Thief\T3\Uninstall\uninstall.xml
    [08/30/2009 14:57:57] Success	Remove uninstall CP entry from Registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TAyalewT3MODTAyalewT3MOD.exe 1.0
    [08/30/2009 14:57:57] Success	Remove uninstall support file: D:\Games\Thief\T3\Uninstall\IRIMG1.JPG
    [08/30/2009 14:57:57] Success	Remove uninstall support file: D:\Games\Thief\T3\Uninstall\IRIMG2.JPG
    [08/30/2009 14:57:57] Success	Remove folder: C:\Users\b1k3rdude\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\TAyalewT3MOD
    [08/30/2009 14:57:57] Success	Remove folder: D:\Games\Thief\T3\CONTENT\T3\Sounds\T.W.Ayalew
    [08/30/2009 14:57:57] Success	Remove folder: D:\Games\Thief\T3\READ ME FIRST_files
    [08/30/2009 14:57:57] Success	Remove folder: D:\Games\Thief\T3\System\Shaders
    [08/30/2009 14:57:57] Success	Remove folder: D:\Games\Thief\T3\Uninstall
    [08/30/2009 14:57:57] Notice	Exit uninstall process (Return code: 0)

    I don't understand why the code is firing on server 2003 but not xp and windows 7. Any suggestions or improvement to the code? I'm not a coder, so I have no idea what any of it means. At a quick glance, it looks like the difference is that the global functions .lua script isn't being run on the other systems.

  2. #2
    Join Date
    Sep 2009
    Posts
    6
    Sorry to bump the message, but any ideas?

  3. #3
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    Hello,

    I would like to see the project file. Full installation and uninstall log files could also help. In these cases, it is always best to set the log to "overwrite" and "extended errors", so you have log files with info about a single install, with detailed errors.

    If you are already a customer, you could send me a support ticket through the customer portal.

    Ulrich

  4. #4
    Join Date
    Sep 2009
    Posts
    6
    Quote Originally Posted by Ulrich View Post
    If you are already a customer, you could send me a support ticket through the customer portal.
    Ulrich
    I'm only using the trial. Having looked at the price, I don't think I'll be able to afford this software anytime soon. Maybe if it was $40, but $400 is a bit out of my price range. I'll probably end up switching back to inno setup or NSIS. :(

  5. #5
    Join Date
    Sep 2009
    Posts
    6


    Doesn't anyone here know if this code is alright?

    Code:
    tFiles = UninstallData.GetItemList(UNINDATA_FILES);
    for nIndex, sName in tFiles do
    iData = UninstallData.GetItem(UNINDATA_FILES, sName);
    if iData.BackupFile ~= "" then
    File.Copy(iData.BackupFile, iData.Filename, false, true, false, true, nil);
    File.Delete(iData.BackupFile, false, false, true, nil);
    end
    end
    ...or have they experienced any 'post' uninstall mishaps like this?

  6. #6
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Probably no one has answered, becuase no can think of a reason why it would work on your system and not elsewhere.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  7. #7
    Join Date
    Sep 2009
    Posts
    6
    Quote Originally Posted by jassing View Post
    Probably no one has answered, becuase no can think of a reason why it would work on your system and not elsewhere.
    That's fine, but could it be in the code? Is there another way to restore the backed up files than the way this code is supposed to do it?

    It's really bizarre, because I've run this installer on two Server 2003 based systems, but when any of my testers run it on an XP system, the restore script doesn't restore. Just don't know what is going on here. As I said, I didn't write the code, so I don't know if there is a cleaner way of writing it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts