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.

Note getting simple 'uninstall'

2 replies to this topic


  • Members
  • 7 posts

Posted 21 December 2005 - 16:21

respected sirs,
I'm presently working on Medical based application and I've to impliment Install shield for the application.
Install shield:
How to do Deinstallation.Presently my application can be uninstalled from controll panel>Add/Remove Programs but I want a shortcut in program folder as usual case.

Actually there are some functions predefined in wizard , I've also gone through theory bud dont know where to put those functions in the script.How they get called when shortcut in program folder is run.what is the process?
this is what i put in : ProcessBeforeDataMove

// //
// Function: ProcessBeforeDataMove //
// //
// Purpose: This function performs any necessary operations prior to the //
// actual data move operation. //
// //

function ProcessBeforeDataMove()
STRING svLogFile,svfile;
NUMBER nResult;


szAppPath = TARGETDIR; // TODO : if your application .exe is in a subdir of TARGETDIR then add subdir
svfile = TARGETDIR + "\\ReMeDi.exe";
if (Is (FILE_LOCKED, svfile)) then
MessageBox ("ReMeDi is already running. It is highly recommended that you close the application \n before proceeding.",SEVERE);
DeinstallSetReference (svfile ^ @PRODUCT_KEY);

nResult = DeinstallStart( svDir, svLogFile, @UNINST_KEY, 0 );
if (nResult < 0) then

// if ((bIs32BitSetup) && (bIsShellExplorer)) then
RegDBSetItem( REGDB_APPPATH, szAppPath );
// endif;

// TODO : update any items you want to process before moving the data

return 0;


I'm getting my log file uninst.isu created but and entry in panel>Add/Remove Programs but I WANT UNINSTALL.exe which can be targeted from start menu to uninstall the application . NEED HLP rolleyes.gif I'm in trouble

Can some expert of Install shield give me the script for customizing the application?

Stefan Krueger

Stefan Krueger


  • Administrators
  • 13,269 posts

Posted 21 December 2005 - 17:54

I think you can do something like AddFolderIcon( ... UNINST ...). UNINST (I think that was the name) is a system variable that has the uninstall command.

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 22 December 2005 - 02:30

I had forgotten about that legacy system variable, so good idea Stefan.

However, I actually already answered this question laserwave, over here, under your original posting, so I'm not sure why you created a new thread about it.

Edited by Taco Bell, 22 December 2005 - 02:33.

user posted image