开发者

Microsoft visual studio 2008 setup project

开发者 https://www.devze.com 2023-01-30 03:48 出处:网络
I have a bunch of files and need to build MSI file /setup.exe file that put them on specific folder and run one fil开发者_开发百科eof them that install a win32 service is that possible with micorosoft

I have a bunch of files and need to build MSI file /setup.exe file that put them on specific folder and run one fil开发者_开发百科e of them that install a win32 service is that possible with micorosoft visual studio 2008 setp project ?

suppossing i have the following files: file1, file2 file3 file4

I need to put file1,file,file3 under c:\documents and setting\all users\my directory and run file4 which install a win32 service while running the setup or the msi is that possilbe ?


Yes, that's all possible. Create a new deployment project and in the File View add the files from your project in the correct places. You may need to mark your files as Content = True in the file properties (from the solution explorer) then I think they'll appear in the dropdown in the file view.

For a windows service, the executable needs to be able to install itself as a service from the command line anyway, so installing it from the MSI is easy as you just need a custom step to call your .exe.


Yes. You can do this with a standard Setup Project. To add custom files and folders, check this link: http://msdn.microsoft.com/en-us/library/x56s4w8x.aspx

For the base "All Users" folder, you will need to specify a Special Folder, specifically the CommonAppDataFolder.

Specifying how to install a Windows Service involves using a special component. I'm not too happy with it, I much prefer Wix.

0

精彩评论

暂无评论...
验证码 换一张
取 消