Results 1 to 4 of 4

Thread: ms installer

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    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
    steve

  2. #2
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Wink Re: ms installer

    Quote 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

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    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
    steve

  4. #4
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Wink Re: ms installer

    Quote 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
  •  



Click Here to Expand Forum to Full Width