stevo.zilik
Posts: 42
Joined: Thu Jul 19, 2007 1:39 pm

Search when Maintenace

Hi,

Is Search working in Maintenance Process same way as it is in Install Process?

I have one Search (for directory) Property and when running Maintenance it doesn't provide same result as in Installing Process. Does it work at all ?
stevo.zilik
Posts: 42
Joined: Thu Jul 19, 2007 1:39 pm

It does work. Why is SourceDir empty when running Maintenance ?

EDIT:

as it is in documentation, ResolveSource Action needs to be run first to fill SourceDir. The danger is that if MSI file does not exits anymore, Windows will demand to browse for appropriate MSI file.
Let mi think. How can I demand to run ResolveSource Action from a running MSI file that does not exits???? :)

is it possible to get that SourceDir somehow?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please note that the SourceDir property is not available during Maintenance (the property is empty). Can you please give more details about why you need this?

Note that during the installation process you can write the value of the SourceDir property in the registry and retrieve it during Maintenance.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stevo.zilik
Posts: 42
Joined: Thu Jul 19, 2007 1:39 pm

Hi,

whether in Install or Maintenance sequence , I provide one more feature. User can update application using special attached files.

I've constructed custom action that reads a directory (always has same name, lets say FDIR) that can be attached to installation CD and this directory may contain special files that serve as update packages for my application. This update cannot be processed using AI, because some special actions are performed, that are not supported by AI (updating database, unpacking files etc... o are they supported? :) ). This action runs Updater that handles this actions.

So when installing or reparing, I need to send source dir (where to look for FDIR files) and destination dir (dir where app is installed). My custom action (console application) searches supplied source directory for those special files and runs Updater, that is always part if installation - in destination dir.

This feature is only available when there is FDIR. It might not be present in installation CD/package. To detect it's presence, I need to SEARCH for [SourceDir]FDIR Directory. And this is a problem during Maintenance.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm afraid that what you need cannot be done by using the SourceDir property.

However, you can create a custom dialog that prompts the user for the location of the "FDIR" folder. This custom dialog will set a property that can be used in your custom action.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stevo.zilik
Posts: 42
Joined: Thu Jul 19, 2007 1:39 pm

Come on!

this is a world of programming, where everything is possible :) .

You know that I'm not gonna look very clever to prompt user for location of a file that is running from inside :)))

There has got to be a workaround.
stevo.zilik
Posts: 42
Joined: Thu Jul 19, 2007 1:39 pm

SETUPEXEDIR Is set when running from bootstrapper ;)

thats all I need

Return to “Common Problems”