Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

UnInstall Problem


2 replies to this topic

Uwe Mathon

Uwe Mathon
  • Members
  • 1 posts

Posted 05 April 2001 - 14:49

When the variable TARGETDIR containes two seperated words, like 'Program files' the uninstall won't recognize the second word. It stops by saying 'c:\program' not found.

By using Windows' own uninstaller everything works fine, but with the Shortcut in the start menu it won't work.

This was repeatedly done with Installshield 5.53 plus Maintenance Pack 3 under any Windows available.

Please help.

Code extract:

//UNINSTPATH
szName="DEINST";
nType=REGDB_STRING;
szValue=UNINST;
LongPathToQuote (szValue, TRUE);
szTargetDir = TARGETDIR;
LongPathToQuote (szTargetDir, TRUE);
szValue = szValue + " -f" + szTargetDir ^ UNINST_LOGFILE_NAME;
nSize=-1;

(Edited by Uwe Mathon at 10:52 am on April 6, 2001)


Blake Miller Wonder

Blake Miller Wonder
  • Members
  • 121 posts

Posted 06 April 2001 - 16:38

I think your path is getting messed up.

Try this instead:

//UNINSTPATH
szName="DEINST";
nType=REGDB_STRING;
szValue=UNINST;
LongPathToQuote (szValue, TRUE);
szTargetDir = TARGETDIR ^ UNINST_LOGFILE_NAME;
LongPathToQuote (szTargetDir, TRUE);
szValue = szValue + " -f" + szTargetDir;
nSize=-1;

I think you were ending up with a quote in the middle of your file path!