"Make Key Member" disabled for all resources in Or - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

skyline_blvd
Posts: 2
Joined: Mon May 29, 2006 5:04 pm
Location: New Jersey, USA
Contact: Website

"Make Key Member" disabled for all resources in Or

Hi - I was told by support (Ionut Toma) that in order to support self-repair, I need to mark all resources eligible for repair as a key member, by right clicking the resource and using the context menu "Make Key Member" selection. I tried doing this, but that selection is disabled for each and every resource in the entire feature (I have but one feature, the Main Feature.

Please help - I have been able to figure out most of what I need on my own, but your documentation is truly abysmal - you shouldn't make people scour Forums for hours to find information that belongs in Help...

JM
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please note that not all resources can be Key Members (only files, registry entries, ODBC Data Sources and CreateFolder rows can be set as Key Members). Also, please make sure that you are not trying to use this option on components (click the plus "+" sign next to a component to see the resources contained by it).
Hi - I was told by support (Ionut Toma) that in order to support self-repair, I need to mark all resources eligible for repair as a key member, by right clicking the resource and using the context menu "Make Key Member" selection.
It seems that you misunderstood the explanation. The easiest way of triggering a repair of the installation is by using an advertised shortcut which points to your application. In order for this to work you need to follow these steps:
- add the files of your application in the "Files and Folders" page
- create a shortcut to the main EXE of your application (in the "Desktop" folder for example)
- in the "New File Shortcut" dialog make sure that the "Advertised Shortcut" option is checked
- in the "Organization" page make sure that all the components are under one feature

With this configuration, when the user launches your application through the shortcut and a file is missing, the feature which contains the application is repaired (and the missing file is restored).

You can read more about advertised shortcuts and their purpose here:
http://www.advancedinstaller.com/user-g ... ialog.html

However, if you don't want to use a shortcut and you want to do this when the application is launched directly, you will need to use the Windows Installer API functions inside your application

For more details about how this can be achieved see the following page:
http://msdn2.microsoft.com/en-us/librar ... S.85).aspx

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
skyline_blvd
Posts: 2
Joined: Mon May 29, 2006 5:04 pm
Location: New Jersey, USA
Contact: Website

What I meant was that NO resources had the "Make Key Member" option available to it, including files (the ones of interest to me were executables and DLL's, which as far as I know, are files.)

Your approach to providing "help", referring people to MSI documentation for nearly everything, leads me to believe that I might as well have purchased a good book on MSI for $60, rather than spend $260 for Advanced Installer. At the very least, you should have links to/explanations of relevant MSI topics in your help files, wherever some understanding of those topics is essential. What you fail to understand is that if a user of your product understood all of the MSI topics you keep citing, that user would not need Advanced Installer to begin with. Self Repair is a HUGELY important topic when it comes to making installation projects, but you totally ignore it in your documentation.

Please do not reply to this with your usual "Oh, we will try to make it better in the future thanks for being a user", by the way - I'm tired of hearing it.

cosmin wrote:Hi,

Please note that not all resources can be Key Members (only files, registry entries, ODBC Data Sources and CreateFolder rows can be set as Key Members). Also, please make sure that you are not trying to use this option on components (click the plus "+" sign next to a component to see the resources contained by it).
Hi - I was told by support (Ionut Toma) that in order to support self-repair, I need to mark all resources eligible for repair as a key member, by right clicking the resource and using the context menu "Make Key Member" selection.
It seems that you misunderstood the explanation. The easiest way of triggering a repair of the installation is by using an advertised shortcut which points to your application. In order for this to work you need to follow these steps:
- add the files of your application in the "Files and Folders" page
- create a shortcut to the main EXE of your application (in the "Desktop" folder for example)
- in the "New File Shortcut" dialog make sure that the "Advertised Shortcut" option is checked
- in the "Organization" page make sure that all the components are under one feature

With this configuration, when the user launches your application through the shortcut and a file is missing, the feature which contains the application is repaired (and the missing file is restored).

You can read more about advertised shortcuts and their purpose here:
http://www.advancedinstaller.com/user-g ... ialog.html

However, if you don't want to use a shortcut and you want to do this when the application is launched directly, you will need to use the Windows Installer API functions inside your application

For more details about how this can be achieved see the following page:
http://msdn2.microsoft.com/en-us/librar ... S.85).aspx

Regards,
Cosmin
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
What I meant was that NO resources had the "Make Key Member" option available to it, including files (the ones of interest to me were executables and DLL's, which as far as I know, are files.)
Please note that Advanced Installer generates the components according to the Windows Installer recommendations. Therefore, a new component is created for every .exe, .dll, and .ocx file. Also, these files are designated as the key path files (or key member) of their components. You can read more about how the components are created here:
http://msdn2.microsoft.com/en-us/librar ... S.85).aspx

Therefore, unless you moved the EXE and DLL resources from their original components, they are already the key members of their components. If this is not the case, can you please send us a screen-shot with the problem to support at advancedinstaller dot com so we can investigate it?
Your approach to providing "help", referring people to MSI documentation for nearly everything, leads me to believe that I might as well have purchased a good book on MSI for $60, rather than spend $260 for Advanced Installer.
Advanced Installer is a MSI-based installation packages authoring tool. This means that our product uses the Windows Installer technology to create Windows Installer packages. Therefore, an Advanced Installer user may need some basic Windows Installer knowledge before using more complex features.

Basically, Advanced Installer allows you to use the Windows Installer technology in an easier way (through a Graphical User Interface) and gives you more control over the installation package.
At the very least, you should have links to/explanations of relevant MSI topics in your help files, wherever some understanding of those topics is essential.
Since the Microsoft links to their articles chage very often, the links may end up pointing to something else.

This wouldn't be a problem for the User Guide on our website (we would update it), but it would be a problem for users which have older versions of Advanced Installer (their help files would be outdated).
What you fail to understand is that if a user of your product understood all of the MSI topics you keep citing, that user would not need Advanced Installer to begin with.
Please note that in order to create MSI packages which use more complex features (not simply adding some files and registry entries), an user may need to know some basic Windows Installer rules and practices.

Also, Advanced Installer is much easier to use than other tools.
Here is the Microsoft tutorial for creating a simple installation package:
http://msdn2.microsoft.com/en-us/librar ... S.85).aspx
And here is our tutorial for a simple installation package (using the same technology):
http://www.advancedinstaller.com/user-g ... imple.html
Self Repair is a HUGELY important topic when it comes to making installation projects, but you totally ignore it in your documentation.
Unfortunately, Windows Installer does not support this feature directly. Since Advanced Installer uses the Windows Installer technology, it doesn't support it directly either.

Therefore, in order to implement this feature you should to use the Windows Installer recommended practices. The easiest way is to use an Advertised shortcut like I explained in my previous post.

Also, a more complex way is to use custom code in your application. This code will verify the integrity of the application files and call some functions in the Windows Installer API when some of the files are missing.

Finally, I would like to specify that the Advanced Installer help and documentation are intended for using Advanced Installer, not for explaining how the Windows Installer technology works. Also, when a licensed (or evaluating) user needs to use some complex Windows Installer features he can always ask our support team on the forum or by mail.

Nevertheless, we appreciate your suggestions about the Advanced Installer documentation and we will try to improve it in the future.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”