|
-
Oct 8th, 2006, 01:25 AM
#1
Thread Starter
Frenzied Member
ms installer
Hello,
I found a good solution using clickonce, for detecting if the application is first run. Using the following code:
Code:
If (System.Deployment.Application.ApplicationDeployment.CurrentDeployment.IsFirstRun)) Then
Dim setConnection As New ServerSettings()
setConnection.Show()
Else
Dim logMeIn As New Login()
logMeIn.Show()
End If
However, the customer has just changed their mind. And they they want to specify the location of where they want to install the application. Clickonce only has a default that cannot be changed.
So I using the ms installer. However the above code does not work for it. It seems
I would like the serverSettings to run only on first startup. However, I am not sure about the code for this, as the above does not work.
Does amyone know the synstax for 'first run' when using ms installer?
I think I am destined not to get this finished, with the customer changing their mind.
Many thanks for your help,
Stteve
-
Oct 17th, 2006, 10:40 PM
#2
PowerPoster
Re: ms installer
 Originally Posted by steve_rm
Hello,
I found a good solution using clickonce, for detecting if the application is first run. Using the following code:
Code:
If (System.Deployment.Application.ApplicationDeployment.CurrentDeployment.IsFirstRun)) Then
Dim setConnection As New ServerSettings()
setConnection.Show()
Else
Dim logMeIn As New Login()
logMeIn.Show()
End If
However, the customer has just changed their mind. And they they want to specify the location of where they want to install the application. Clickonce only has a default that cannot be changed.
So I using the ms installer. However the above code does not work for it. It seems
I would like the serverSettings to run only on first startup. However, I am not sure about the code for this, as the above does not work.
Does amyone know the synstax for 'first run' when using ms installer?
I think I am destined not to get this finished, with the customer changing their mind.
Many thanks for your help,
Stteve
Thanks Styeve for this question.
Someone give a solution here it will helpfull to me as well.
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
-
Oct 18th, 2006, 11:33 AM
#3
Thread Starter
Frenzied Member
Re: ms installer
Hello,
I did find a solution for this, which was very simple. All you have to do is set a key value in the registry. When the program runs for the first time it will check for this key value, if it doesn't exist then the programming is running for the first time, so set a key value for the next time the program is ran. So for the next time it is ran, the key value will exist so the program will do something different.
I don't have the syntax for the setting the key value in the registry. However, there is some good code example on msdn that I used for this. However, if you still need help I can send you my code tomorrow.
Steve
-
Oct 18th, 2006, 09:48 PM
#4
PowerPoster
Re: ms installer
 Originally Posted by steve_rm
Hello,
I did find a solution for this, which was very simple. All you have to do is set a key value in the registry. When the program runs for the first time it will check for this key value, if it doesn't exist then the programming is running for the first time, so set a key value for the next time the program is ran. So for the next time it is ran, the key value will exist so the program will do something different.
I don't have the syntax for the setting the key value in the registry. However, there is some good code example on msdn that I used for this. However, if you still need help I can send you my code tomorrow.
Steve
Can it cause for the programs which are already setup?
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|