Hi everyone,
during these weeks i have had to deal with some NAV R2 hotfixes, and i suddendly understood that it's very difficult to keep your version updated to the latest hotfix, because new hotfixes are released on a weekly basis (more or less).
Moreover, it's a pain to install them, because you extract the hofix from the zip file, and it contains 6 subfolders that contains the files to replace. You then have to "map" the hotfix folders with the installation folders (because they don't have the same name) and then copy the files from the hotfix to the client. (It's too odd to be true, am i missing something?)
I'd really like to semi automate this with a winform: ideally, i would like to ask the user to insert nav installation folder and the source folder of the hotfix. After that, click a button to do:
1. create a backup copy of the current files.
2. overwrite the files with the new version, automatically.
I am able to to this in nav, but it's not the correct way in my opinion. Ideally it would be (as i said) a winform, but unfortunately i don't have the knowledge to do it.
Any idea, please?
Thanks in advance
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
That sounds like a great tool. If you ever want, I can share my knowledge from my recent level of stumbling around in C# express. Kine's right, it's pretty easy to handle making an app like that.
Shoot me a PM and we can swap contact info.
CEO, Spare Brained Ideas, Göteborg, Sweden
New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"
Anyway, I've made a raw project: it works, but it's reaaaaaaally ugly to see! (i'm talking about the code design, the UI is minimal)
It's incomplete, as you can see...i have some problems that i don't know how to solve:
1. if the service is up, it would be great to ask the user to shut it down, and eventually do it on his confirmation.
2. if there are more than one service, how do i manage them (i cannot know the name of the folder of the services)?
3. it would be great to read nav installation folder from registry entry or something
4. it would be also great to inherit the folder where i placed the exe. In this way i can put it in the hotfix folder and automatically populate the "hotfix folder" field
5. another great feature is to pass the paths as parameters. Something like: navhofixer /hffolder [foldername] /navfolder [foldername] /bkupfolder [foldername]
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
EDIT: i found a way:
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
- is there a way to distinguish between a webservice service and a nav server service? (some hardcoded character in the name, some parameter...dunno): this is needed in order to exclude the webservices services from the service list
- in order to associate a nav server with its webservice server, i can use the exe file (because it is the same). Do you know another way to, or is this the only one? (this is not a relevant question, anyway)
- is it possible to INSTALL the nav client in a folder that is COMPLETELY different from the one of its server? If yes, how can i get the path of the client? (for now, i get it by trimming the path of the exe server that i found in the registry key before)
thanks in advance for your help!
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog