Page 1 of 1

\"Browse for Folder\" Issue

Posted: Mon Jul 03, 2006 1:53 pm
by MarkRichards
Hello,

I've got extremely complex application install requirements, and so I use InstallAware v5.3 to "bootstrap" the machine environment (with .NET 2.0 & MSI 3.1) and then launch immediately into a custom installer module. The custom installer modules are included with the InstallAware package as support files. I need to launch the custom code during BOTH installation and removal.

Installation is working perfectly - my custom code is launched and (if it proceeds without), the installation is finalized. But during UN-install, I have a weird problem: a "Browse for Folder" pops up immediately before my custom code launches.

I can't figure out why this is happening. The custom modules still do launch correctly, so I don't know what the installation package is even trying to browse for.

Here's the call block:

-------------------------------------

Set Variable OSSetupResult to
if Variable REMOVE Equals TRUE
Run Program $SUPPORTDIR$\\custom_install.exe remove (WAIT)
else
Run Program $SUPPORTDIR$\\custom_install.exe (WAIT)
end

-------------------------------------

Any ideas on what I'm doing wrong here?

- Mark R.

Posted: Mon Jul 03, 2006 1:58 pm
by MichaelNesmith
Hi Mark!

Do you have any plug-in calls that may require access to source media, such as File Bag, that execute during uninstall?

Posted: Mon Jul 03, 2006 2:40 pm
by MarkRichards
Hi Michael,

Thanks for the quick reply. You folks do a great job.

To answer your question - nope, I'm not use file bags or any other plug-ins. I do have the MSI 3.1 and .NET 2.0 pre-requisites turned on.

The "Browse for Folder" dialog appears right before my custom installer app launches, but only during un-install. This implies to me that the problem is related to the support files somehow, but I'm at a loss as to why.

Nothing much else of interest in the project, really.

- Mark R.

Posted: Mon Jul 03, 2006 2:50 pm
by MarkRichards
I figured it out.

I had a stray "Apply Install" command sitting up above my un-install logic. For whatever reason (and I'm sure there's a sensible one) this was kicking off the "Browse for Folder" dialog during un-install.

I added some conditional logic and the problem is resolved.

Thanks again for the help.

- Mark R.

Posted: Mon Jul 03, 2006 4:07 pm
by MichaelNesmith
Hi!

Apply Install does require access to source media, as its trying to install files - that explains it. Glad you have it figured out!