Help with Setup project
am 25.10.2007 18:06:55 von 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!
Re: Help with Setup project
am 29.10.2007 08:03:06 von SA
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!
________________________
sa@openwinforms.com
http://www.openwinforms.com/
OpenWinForms - open source windows forms and controls
Google group - http://groups.google.com/group/open-winforms
"Technolust" wrote in message
news:1193328415.633658.268640@v29g2000prd.googlegroups.com.. .
> 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!
>
Re: Help with Setup project
am 31.10.2007 17:20:31 von Technolust
On Oct 29, 12:03 am, wrote:
> 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!
> ________________________
> s...@openwinforms.comhttp://www.openwinforms.com/
> OpenWinForms - open source windows forms and controls
>
> Google group -http://groups.google.com/group/open-winforms"Technolust" wrote in message
>
> news:1193328415.633658.268640@v29g2000prd.googlegroups.com.. .
>
>
>
> > 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!!