Help with Setup project

  • Thread starter Thread starter Technolust
  • Start date Start date
T

Technolust

Hi there!

I'm using VS 2005 SP1 to create a setup project. I'm checking for a
registry entry in HKCU\Software \FMI\NCR called 'TemplateFolder' in
the Launch Conditions tab. The Property is set to REG_NCRTEMPLPATH.

In the Registry tab, I want to create the same registry entry as above
only if it does not exist.

A Launch Condition searches for the registry entry 'TemplateFolder' in
HKCU\Software\FMI\NCR. The Property value for this item is
REG_NCRTEMPLPATH. In the Registry tab, I've created the registry key
path HKCU\Software\FMI\NCR with an entry name 'TemplateFolder.' Its
Value property is set to "\\fpserver\fmi\data\Applications\NCR
\Templates\" and Condition property set to [REG_NCRTEMPLPATH] = "".


Every time I run the install, it overwrites the current entry on my
machine for 'TemplateFolder.' Then on Uninstall, it deletes my entry
even though I have the DeleteAtUninstall property set to False for
each of my registry keys.


What am I doing wrong here?


Gratuitous thanks to anyone who answers!
 
You need to create a custom action and add the ref in your setup project. In
custom action you will get the control of install and uninstall. Here you
can write your code for manipulating registry entries.

Let me know in case you need any further help!
________________________
(e-mail address removed)://www.openwinforms.com/
OpenWinForms - open source windows forms and controls




Hi there!
I'm using VS 2005 SP1 to create a setup project. I'm checking for a
registry entry in HKCU\Software \FMI\NCR called 'TemplateFolder' in
the Launch Conditions tab. The Property is set to REG_NCRTEMPLPATH.
In the Registry tab, I want to create the same registry entry as above
only if it does not exist.
A Launch Condition searches for the registry entry 'TemplateFolder' in
HKCU\Software\FMI\NCR. The Property value for this item is
REG_NCRTEMPLPATH. In the Registry tab, I've created the registry key
path HKCU\Software\FMI\NCR with an entry name 'TemplateFolder.' Its
Value property is set to "\\fpserver\fmi\data\Applications\NCR
\Templates\" and Condition property set to [REG_NCRTEMPLPATH] = "".
Every time I run the install, it overwrites the current entry on my
machine for 'TemplateFolder.' Then on Uninstall, it deletes my entry
even though I have the DeleteAtUninstall property set to False for
each of my registry keys.
What am I doing wrong here?
Gratuitous thanks to anyone who answers!- Hide quoted text -

- Show quoted text -

Ah, yes! An executable or vbscript might do the trick.
Thank You!!
 
Back
Top