How To Have VB.Net Installer Run My Code - vb.net

I have been searching online for an answer for this question, but cannot find anything useful in my case. I added deployment to my project, but I want that deployment to copy JavaScript files to a certain dynamic location. The only way I can think of is having the deployment call my function that I can write in VB.net. If you guys have any idea on how to do this or some other ideas it would be appreciated. Thanks

Because I had a similar question to this, the easiest way is do this is...
Right-Click on the Solution, and go to Add - New Project.
New Project - (Setup/Deployment - Visual Studio Installer)
Under the "File System on Target Machine" - Add a new Folder that contains all the JavaScript items that you wish to deploy.
Change the Default Folder Location to your location that you intend for the Install process
For the folder properties for the Default Folder Location - use this link. It'll help a lot!
http://msdn.microsoft.com/en-us/library/aa372057(v=vs.80).aspx
That's the basic idea from what I gathered about your post.
Best,
Jimmy

Related

How to execute the "AL:GO!" task as part of a script

Recently, my company started to focus Extension_v2 development for Dynamics NAV BC. We store our code in an internal Git-Server. So far, so good.
But startig a new project is still a very fiddly task. You have to create a repository, clone it, execute the AL Code-Task, move the files to the fitting location push the repository to the correct upstream etc. And all this does not include the first initial Steps (README, CHANGELOG and all other fundamental files...).
So I wanted to write a small PowerShell-Script, to do all these initial steps before being able to start working on the Project.
The Problem: I could not find a way to execute the "AL-GO!" task via script.
I have already searched the Internet and some forums for an answer... but it seems like microsoft did not consider the possibility to execute tasks from the AL-Language-Extension via script.
I also played around with the New-NAVAppManifest and the New-NAVAppManifestFile command for the old Extension_V1 development, but that did not do the trick.
I am looking for a fair and easy way to combine the creation of the app.json file and the launch.json file with other commands to easily initialize a new Project without haveing to write all commands manually. Maybe I did not recognize the easy solution. Or maybe this is just the way we have to do it in Extension_v2.
Anyway, thanks for all your help nevertheless.
Greetings.
Stay away from Ext V1. It's highly deprecated at this point.
First of all, why do you need to execute the "AL-Go!" via script? The "AL-Go!" command should already include all necessary steps to create an empty project including the launch.json and app.json. (minimal adjuments required dependent on your BC environment)
There is an extension/plugin for Git in Visual Studio Code which will handle all the repository stuff for you. You don't need to change file locations if everything is set up for Git. I rarely use it yet, but saw a demo for it on the Directions EMEA last year and I'm pretty sure it works at its current state (someone correct me if I'm wrong)
A way to implement the "AL-GO!" command for a script or for setting up additional steps in your project setup might be to write your own visual studio code extension/plugin which requires some additional know-how for that.
OR
You just change the settings/files of the default project, I bet there is at least a file for creating the initial AL project. Just change that to your requirements

Why option of include project not showing in MVC 4?

Thank you so much guys for your previous support on many issues...
I have started to work on MVC 4 in asp.net.
I had tried to setup a template of bootstrap in project. I have copied all the required folder in project but i am not able to access the sub folder and files.
You have seen in the above image. Know i want to access them so any one help me that what should i do to access their internal folders and files...
Note: If this question is not valid then do not devote me you can comment then i will delete this. Thank you
Have you tried the Show All Files button?

Wix installer integration with text file

I have an installation that copy files to the relevant location,install some of them in the GAC and install services.
I'm looking for a way to improve my installer and ease my application configuration by adding forms to the installer with some edit box which eventually will replace strings in my application configuration files, that way it will be more comfortable and user friendly to configure the application setting.
Is that possible?
if so, where should I look on how to do this?
From what you are asking, it looks like you would like to introduce some User Interface as part of your installation process. Wix has several inbuilt UI dialog sets that can help you do just this.
Take a look at the following:
http://wixtoolset.org/documentation/manual/v3/wixui/wixui_dialog_library.html
http://wixtoolset.org/documentation/manual/v3/wixui/wixui_customizations.html
https://www.firegiant.com/wix/tutorial/user-interface/
https://www.firegiant.com/wix/tutorial/user-interface-revisited/
Hope this helps.
If you would like to introduce a custom dialog in the user interface sequence, take a look at:
http://wixtoolset.org/documentation/manual/v3/wixui/wixui_customizations.html
https://www.firegiant.com/wix/tutorial/user-interface-revisited/a-single-dialog/
Try things out. These examples should be sufficient to help you get started.

How to use a NuGetRestore Activity in MSBuild?

This post asks the same question, but the answer is to use the new template that already makes use of the NugetRestore activity.
I tried to use the new template (TfvcTemplate.12.xaml) on a sample project and couldn't begin to get it to work. I suspect its a rights issue somewhere (can't access the template during the build), but I couldn't solve it. Edit: got a copy of that template and it still doesn't seem to call nuget; same problem - I need to make the NuGetRestore activity work.
In any case I have customizations already in place and only need to add in the new activity.
The problem is the activity has a "Solutions" string array property and I don't know how to pass the path to my solution. If I pass {"$(SolutionRoot)\MySolution.sln"}, I see that unexpanded literal in the log:
c:\Program Files\Microsoft Team Foundation Server 12.0\Tools\nuget.exe restore "$(SolutionRoot)\MySolution.sln" -NonInteractive
What can I pass as my solution path?

Renaming the existing files during MSI installation WIX

I have a WIX Installer and in the installer i also copy a tutorial project created in VS 2012. What i want is if user has changed the tutorial project by adding new files in it then i just want to rename the existing tutorial and and copy the new tutorail and if user has not changed the existing tutorial then i just want to replace the existing tutorial with the new tutorial.
Is the first question is, Is it really possible using WIX? (Does WIx gives us some functionality like that)
if its possible can some will guide me how to do that?
It should be possible using the MoveFile element but it's going to be really tricky. I worked for a company that created a .NET SDK and we build custom project types for VS that allowed the user to say File | New | SomeTypeOfApp and then use that for training. We also kept our "tutorial" apps in ZIP files and an application that acted as a front end asking the developer where they would like to extract the sample app to. This greatly simplified the installer requirements.