Avoid browsing for script at uninstall time?

Got a problem you cannot solve? Try here.
AndrewC
Posts: 23
Joined: Tue Feb 06, 2007 8:11 pm

Avoid browsing for script at uninstall time?

Postby AndrewC » Fri Mar 16, 2007 7:09 pm

Hi all,

My app ships with hundreds of MB of data files so we use an uncompressed layout. We'd like to change that so as not to require the user to browse to the install script at uninstall time. I know if we compile as a web app the script is cached automatically, but we don't want to cache all the data files, and I believe that happens with a web compile.

Our app doesn't allow the user to change features; just a strict uninstall, so we just need to cache the script, not the data files. Can anyone clue me in as to how I can do that? I'm guessing I need to write a registry entry somewhere, but I don't know where to look.

Thanks.

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Sat Mar 17, 2007 8:19 am

InstallAware never prompts for source "scripts", it does prompt for source *files*, which might be required if your uninstall needs them (plug-ins or certain other commands require access to source media). Review your script.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

AndrewC
Posts: 23
Joined: Tue Feb 06, 2007 8:11 pm

Postby AndrewC » Sat Mar 17, 2007 1:16 pm

Thanks for the fast reply, Michael. I'll review my script.

jls
Posts: 26
Joined: Wed Jun 06, 2007 5:17 am
Location: Norway

What should force the uninstall to require access to source

Postby jls » Tue Jun 12, 2007 4:18 am

I don't want the user to be prompted for the source file destination on uninstall. How can I avoid that?

What kind of commands require access to source media?

Here is my install code. Is it any problem with that?

Edit INI File $TARGETDIR$\\test.ini, [Section1] Value=$TARGETDIR$
Apply Install (get result into variable SUCCESS)
if Variable SUCCESS not Equals ERROR
if Variable SUCCESS not Equals CANCEL
Set Variable DLLRESULT to false
Call DLL Function $SUPPORTDIR$\\testdll.dll->CreateINI (get result into variable DLLRESULT)
if Variable DLLRESULT not Equals TRUE
Set Variable REMOVE to TRUE
Apply Uninstall (get result into variable SUCCESS)
else
Run Program $SUPPORTDIR$\\TestAppMan.exe "$TARGETDIR$" (WAIT)
Run Program $SUPPORTDIR$\\TestApp.exe "$TARGETDIR$" (WAIT)
end
end
end

Jørgen


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 121 guests