Re: How to detect multiple instances of my app?
- From: "Kevin Provance" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 15 Nov 2008 20:36:04 -0500
Haven't we established that writing to HKLM under Vista is unreliable unless
one has elevated privlidges? Better to use HKCU.
"expvb" <nobody@xxxxxxx> wrote in message
news:eUntoD1RJHA.4764@xxxxxxxxxxxxxxxxxxxxxxx
| "expvb" <nobody@xxxxxxx> wrote in message
| news:%23%23Ig$g0RJHA.4680@xxxxxxxxxxxxxxxxxxxxxxx
| > "Jack" <replyto@it> wrote in message
| > news:%23u2VMmzRJHA.1144@xxxxxxxxxxxxxxxxxxxxxxx
| >> Thanks, that is what I thought.
| >> I have to keep the track of each installation and store the required
data
| >> in some key in the registry.
| >
| > Check this post to see if it's helpful:
| >
| > How to Get the Old AppId example:
| > http://news.jrsoftware.org/news/innosetup/msg57379.html
|
| Scratch that. You can use HKLM during install time to store the path in
| values like path1, path2, etc. Use RegEnumValue() to read the list of
| values. This can be done using Inno with some [Code], or by using your own
| EXE to do it. Inno has RegGetValueNames() to do this, and in the help
there
| is a sample that loops through values.
|
| If you want to do it in VB, download the following source code library:
|
| http://sourceforge.net/projects/codebox/
|
| In "src" folder, add CRegistry.cls file to your project to have easy to
use
| registry functions. See SaveString() and EnumSubKeyValues() in particular.
| There is another file called CRegKey.cls, but it's a trimmed down version
| that doesn't enumerate values in a particular key.
|
| The library is a collection of classes that replicate the Common Controls
| functionality using the API, plus many other useful classes, such
| manipulating files and the registry.
|
|
.
- References:
- How to detect multiple instances of my app?
- From: Jack
- Re: How to detect multiple instances of my app?
- From: Ralph
- Re: How to detect multiple instances of my app?
- From: Jack
- Re: How to detect multiple instances of my app?
- From: mayayana
- Re: How to detect multiple instances of my app?
- From: Jack
- Re: How to detect multiple instances of my app?
- From: expvb
- Re: How to detect multiple instances of my app?
- From: expvb
- How to detect multiple instances of my app?
- Prev by Date: Re: Vista makes me crazy, please help.
- Next by Date: Ubound gives wrong value
- Previous by thread: Re: How to detect multiple instances of my app?
- Next by thread: Re: How to detect multiple instances of my app?
- Index(es):
Relevant Pages
|