Page 1 of 1

Avoid browsing for script at uninstall time?

Posted: Fri Mar 16, 2007 7:09 pm
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.

Posted: Sat Mar 17, 2007 8:19 am
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.

Posted: Sat Mar 17, 2007 1:16 pm
by AndrewC
Thanks for the fast reply, Michael. I'll review my script.

What should force the uninstall to require access to source

Posted: Tue Jun 12, 2007 4:18 am
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