Creating Setup/Installation Project in visual studio











up vote
-2
down vote

favorite












I have created an standard installation project in vs2017. I require to update the string connection over user input and run an script to Create DB on selected String connection.



I am following the following article https://www.codeproject.com/Tips/446121/Adding-connection-string-during-installation#_articleTop



But I do not understand where to create the Installation class.



Any suggestion on how to perform this task?










share|improve this question




















  • 2




    how about downloading the sample and actually having a look - or am i missing something?
    – JohnB
    Nov 9 at 2:26












  • Better to use INNO installer
    – T.S.
    Nov 9 at 2:27










  • @JohnB I see no sample to download,do you?
    – alvardo
    Nov 9 at 13:19















up vote
-2
down vote

favorite












I have created an standard installation project in vs2017. I require to update the string connection over user input and run an script to Create DB on selected String connection.



I am following the following article https://www.codeproject.com/Tips/446121/Adding-connection-string-during-installation#_articleTop



But I do not understand where to create the Installation class.



Any suggestion on how to perform this task?










share|improve this question




















  • 2




    how about downloading the sample and actually having a look - or am i missing something?
    – JohnB
    Nov 9 at 2:26












  • Better to use INNO installer
    – T.S.
    Nov 9 at 2:27










  • @JohnB I see no sample to download,do you?
    – alvardo
    Nov 9 at 13:19













up vote
-2
down vote

favorite









up vote
-2
down vote

favorite











I have created an standard installation project in vs2017. I require to update the string connection over user input and run an script to Create DB on selected String connection.



I am following the following article https://www.codeproject.com/Tips/446121/Adding-connection-string-during-installation#_articleTop



But I do not understand where to create the Installation class.



Any suggestion on how to perform this task?










share|improve this question















I have created an standard installation project in vs2017. I require to update the string connection over user input and run an script to Create DB on selected String connection.



I am following the following article https://www.codeproject.com/Tips/446121/Adding-connection-string-during-installation#_articleTop



But I do not understand where to create the Installation class.



Any suggestion on how to perform this task?







installation visual-studio-2017






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 9 at 2:26









T.S.

9,26193152




9,26193152










asked Nov 9 at 2:20









alvardo

277




277








  • 2




    how about downloading the sample and actually having a look - or am i missing something?
    – JohnB
    Nov 9 at 2:26












  • Better to use INNO installer
    – T.S.
    Nov 9 at 2:27










  • @JohnB I see no sample to download,do you?
    – alvardo
    Nov 9 at 13:19














  • 2




    how about downloading the sample and actually having a look - or am i missing something?
    – JohnB
    Nov 9 at 2:26












  • Better to use INNO installer
    – T.S.
    Nov 9 at 2:27










  • @JohnB I see no sample to download,do you?
    – alvardo
    Nov 9 at 13:19








2




2




how about downloading the sample and actually having a look - or am i missing something?
– JohnB
Nov 9 at 2:26






how about downloading the sample and actually having a look - or am i missing something?
– JohnB
Nov 9 at 2:26














Better to use INNO installer
– T.S.
Nov 9 at 2:27




Better to use INNO installer
– T.S.
Nov 9 at 2:27












@JohnB I see no sample to download,do you?
– alvardo
Nov 9 at 13:19




@JohnB I see no sample to download,do you?
– alvardo
Nov 9 at 13:19












1 Answer
1






active

oldest

votes

















up vote
0
down vote













For people fighting Against this, I found a more detail tutorial.
https://codeteddy.com/2016/04/04/creating-an-msi-package-for-c-windows-application-using-a-visual-studio-setup-project/.



The instalattion class, must be added into the proyect you want to install.



Regards,






share|improve this answer





















  • Hi, so glad to hear that and please mark your reply as answer, then will help others easier search this useful information, thanks in advance.
    – Sara Liu - MSFT
    yesterday











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53218945%2fcreating-setup-installation-project-in-visual-studio%23new-answer', 'question_page');
}
);

Post as a guest
































1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













For people fighting Against this, I found a more detail tutorial.
https://codeteddy.com/2016/04/04/creating-an-msi-package-for-c-windows-application-using-a-visual-studio-setup-project/.



The instalattion class, must be added into the proyect you want to install.



Regards,






share|improve this answer





















  • Hi, so glad to hear that and please mark your reply as answer, then will help others easier search this useful information, thanks in advance.
    – Sara Liu - MSFT
    yesterday















up vote
0
down vote













For people fighting Against this, I found a more detail tutorial.
https://codeteddy.com/2016/04/04/creating-an-msi-package-for-c-windows-application-using-a-visual-studio-setup-project/.



The instalattion class, must be added into the proyect you want to install.



Regards,






share|improve this answer





















  • Hi, so glad to hear that and please mark your reply as answer, then will help others easier search this useful information, thanks in advance.
    – Sara Liu - MSFT
    yesterday













up vote
0
down vote










up vote
0
down vote









For people fighting Against this, I found a more detail tutorial.
https://codeteddy.com/2016/04/04/creating-an-msi-package-for-c-windows-application-using-a-visual-studio-setup-project/.



The instalattion class, must be added into the proyect you want to install.



Regards,






share|improve this answer












For people fighting Against this, I found a more detail tutorial.
https://codeteddy.com/2016/04/04/creating-an-msi-package-for-c-windows-application-using-a-visual-studio-setup-project/.



The instalattion class, must be added into the proyect you want to install.



Regards,







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 10 at 14:24









alvardo

277




277












  • Hi, so glad to hear that and please mark your reply as answer, then will help others easier search this useful information, thanks in advance.
    – Sara Liu - MSFT
    yesterday


















  • Hi, so glad to hear that and please mark your reply as answer, then will help others easier search this useful information, thanks in advance.
    – Sara Liu - MSFT
    yesterday
















Hi, so glad to hear that and please mark your reply as answer, then will help others easier search this useful information, thanks in advance.
– Sara Liu - MSFT
yesterday




Hi, so glad to hear that and please mark your reply as answer, then will help others easier search this useful information, thanks in advance.
– Sara Liu - MSFT
yesterday


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53218945%2fcreating-setup-installation-project-in-visual-studio%23new-answer', 'question_page');
}
);

Post as a guest