Home All Groups Group Topic Archive Search About

Help with Setup project

Author
25 Oct 2007 4:06 PM
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!

Author
29 Oct 2007 7:03 AM
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!
________________________
s*@openwinforms.com
http://www.openwinforms.com/
OpenWinForms - open source windows forms and controls

Google group - http://groups.google.com/group/open-winforms
Show quote
"Technolust" <queenskni***@technologist.com> 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!
>
Author
31 Oct 2007 4:20 PM
Technolust
On Oct 29, 12:03 am, <s***@openwinforms.com> wrote:
Show quote
> 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" <queenskni***@technologist.com> 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!!

AddThis Social Bookmark Button