Author Topic: Installation without Frustration  (Read 18734 times)

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Installation without Frustration
« on: March 18, 2013, 09:55:04 PM »
There are many methods of deploying your completed project. The one I recommend and use myself is to copy the complete solution to the PC and create a shortcut to the EXE found in the \bin  folder (debug or release depending on how you have Visual Studio setup). I will then move the shortcut to the Startup menu. This is commonly referred to as XCOPY deployment.

This solves the biggest problem to the next person that must maintain or modify the HMI by keeping the full source code with the executable easy at hand. Nothing more frustrating than wanting to make a simple modification and not being able to find the source code.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Installation without Frustration
« Reply #1 on: April 19, 2016, 08:11:28 PM »
An additional benefit to this method of deployment is that it fully complies with the licensing.

georgegraz

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Installation without Frustration
« Reply #2 on: February 27, 2017, 08:38:09 AM »
Archie,
This is exactly what I want to do. Right now I over write the previous one. What doo you mean by Complete solution? Is this a folder?
Thanks
George

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Installation without Frustration
« Reply #3 on: February 27, 2017, 09:36:09 AM »
What do you mean by Complete solution? Is this a folder?
The .sln file and the 4 folders (AdvancedHMI, AdvancedHMIControls, AdvancedHMIDrivers, AdvancedHMIcs)

needhmi

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Installation without Frustration
« Reply #4 on: May 01, 2017, 03:08:13 PM »
The app loads up fine and looks fine graphically when I do an XCOPY deployment as described in this thread, but it seems to prevent the datalogger21 function from working.  It does not create a .csv data log file in the folder it is programmed for.  This function does work somewhat when I install it (creates a .csv file at least). 

I'm making sure the "FileFolder" value is set correctly for the computer I am deploying to, and the ModbusRTUCom1 driver seems to be working fine.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Installation without Frustration
« Reply #5 on: May 01, 2017, 08:35:07 PM »
The app loads up fine and looks fine graphically when I do an XCOPY deployment as described in this thread, but it seems to prevent the datalogger21 function from working.  It does not create a .csv data log file in the folder it is programmed for.  This function does work somewhat when I install it (creates a .csv file at least). 

I'm making sure the "FileFolder" value is set correctly for the computer I am deploying to, and the ModbusRTUCom1 driver seems to be working fine.
It sounds like you are trying to log to a directory the application does not have access to. Try putting ".\" in file folder and see if it creates a file in the same directory as the executable.

needhmi

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Installation without Frustration
« Reply #6 on: May 02, 2017, 12:26:21 AM »
Yes that works Archie, thank you very much!   The "\" doesn't stay in there, just the "." (without the quotes).  A little buried for some to find but a solid work around until I can figure out if I can build a menu to change the default save location.