Avoid browsing for script at uninstall time?

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

Avoid browsing for script at uninstall time?

Post by AndrewC »

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:

Post by MichaelNesmith »

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
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
AndrewC
Posts: 23
Joined: Tue Feb 06, 2007 8:11 pm

Post by AndrewC »

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

Post by jls »

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
Post Reply