How to create a execute file or msi in c#??

How to create a execute file or msi in c#??

Anonymous
Not applicable
2,442 Views
6 Replies
Message 1 of 7

How to create a execute file or msi in c#??

Anonymous
Not applicable

Hi!

I wanna create a execute file for my Add-in.

First I tried this way.

1. Add Setup Project to Solution Project

2. Right Click Application Folder in Setup and Add Project Output 

3. Build Solution

But it didnt work.. 

Is there other way ??? 

 

0 Likes
2,443 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable

Hello!

You should probably check out My First Revit Plugin Overview, if you want to get a hang how to go from a solution in Visual Studio, to working Add-In in Revit. 

You can find it here: https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/simplecontent/content/my-fi...

If you're past this point, please describe your problem in more detail.

0 Likes
Message 3 of 7

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @Anonymous ,

Opensource:

For creating Industrial scale deployment packages:

http://wixtoolset.org/documentation/manual/v3/main/

Default:

For creating simple deployment packages:

https://www.c-sharpcorner.com/UploadFile/1492b1/creating-an-msi-package-for-C-Sharp-windows-application-using-a-v/

Comments: Simple, 1 hour googling should get things sorted.

 

Paid\Freemium:

https://www.advancedinstaller.com/user-guide/tutorial-ai-ext-vs.html


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 4 of 7

Anonymous
Not applicable

Thank you for  your reply.

I tried this Url https://www.c-sharpcorner.com/UploadFile/1492b1/creating-an-msi-package-for-C-Sharp-windows-applicat...

But It didn't work.

There is a setup folder but no exe file.

I wonder my visual studio setting can be problem.
Here is my setting.
RevitAPI and RevitUIAPI's Copy Locals are False;
and my add-in manifest's Copy to Output Directory is Copy if newer
Start external program is Revit.exe
and Post-build event command line in Build Events is copy "$(TargetDir)"."" "$(AppData)\Autodesk\Revit\Addins\2019\".
I really want to create an exe file for distribution.
I want to upload my application to Autodesk app store
0 Likes
Message 5 of 7

Anonymous
Not applicable

Thank you for your reply!

 

I have create an add-in using Visual Studio 2017.

I want to create an exe file for distribution.

 

I add Setup Project to my Solution Project.

When i built my project, There is a setup folder but no exe file in there.

I wonder my setting can be problem or other problem.

 

Here is my setting.
RevitAPI and RevitUIAPI's Copy Locals are False;
and my add-in manifest's Copy to Output Directory is Copy if newer
Start external program is Revit.exe
and Post-build event command line in Build Events is copy "$(TargetDir)"."" "$(AppData)\Autodesk\Revit\Addins\2019\".
 
Please Helps me.

thank you!

0 Likes
Message 6 of 7

jeremytammik
Autodesk
Autodesk

You can contact the AppStore team directly for advice and help on creating the installer and submitting an add-in to the AppStore:

 

https://thebuildingcoder.typepad.com/blog/2018/10/revit-add-in-locations-and-bim360-eu.html#4

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 7 of 7

shashank.baganeK2K5N
Enthusiast
Enthusiast

Hi @naveen.kumar.t  I have already msi file for revit 2022. But I want to give only paths of Revit 2020, 21, 23, and 24. By default the path is given for revit 2022. Can you please guide me how to do this or how to achieve it ?

 

I really appriciate your time and support. 

shashankbaganeK2K5N_0-1719315776695.png

 

 

0 Likes