Windows Installer: Registry path + Fixed path

M

MW

Hi all,

I have writen plugin for another application and I need to install this
component in a directory where the application is installed.
I am using the basic Windows Installer.
I read the value from a registry to get the proper directory. The problem is
that I need it to input in that way in the given directory:

APPLICATION_PATH \ ANOTHER_DIR

So I created Custom Folder in an installer. I've set the Default Location
property to the: [RegistryPath][Another_Dir]
So this should work perfect. Unfortunately there is a property named
Property, that can override the Default Location.
In MSDN I found that if I left it empty, then it will never override it
(that's the way I want it) , but when I leave it empty, the compiler states:

Invalid property " for folder 'AnotherDir'

How do I get rid of this error?
Is there any other solution, maybe?
If something is unclear let me know.

Thanks for all the help.
 
P

Phil Wilson

Tricky with VS-generated setup projects:
1. Use ChangeServiceConfig2 (Win32) on your Service.
2. Install it with a tool that uses the normal Windows Installer way of
installing Services (the ServiceInstall table). VS installs Services by
running Installer class custom action code - all the other tools I've ever
seen just let you describe the Service in an IDE and have Windows Installer
do it, including that description you're looking for.
 
P

Phil Wilson

Well ignore that reply, it was intended somewhere else - more coffee
please.......

These property names are case-sensitive, and VS requires them to be
upper-case (internally public in the installation process). So if you've
done a registry search and set a property REGISTRYPATH, you need
REGISTRYPATH in your custom folder's property value. It's not unfortunate
that there's a Property value - that's where you put REGISTRYPATH to
override the default.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

MW said:
Hi all,

I have writen plugin for another application and I need to install this
component in a directory where the application is installed.
I am using the basic Windows Installer.
I read the value from a registry to get the proper directory. The problem
is
that I need it to input in that way in the given directory:

APPLICATION_PATH \ ANOTHER_DIR

So I created Custom Folder in an installer. I've set the Default Location
property to the: [RegistryPath][Another_Dir]
So this should work perfect. Unfortunately there is a property named
Property, that can override the Default Location.
In MSDN I found that if I left it empty, then it will never override it
(that's the way I want it) , but when I leave it empty, the compiler
states:

Invalid property " for folder 'AnotherDir'

How do I get rid of this error?
Is there any other solution, maybe?
If something is unclear let me know.

Thanks for all the help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top