FolderBrowserModernDialog not working in compiled .exe

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
jvierra
Posts: 14014
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: FolderBrowserModernDialog not working in compiled .exe

Post by jvierra » Tue Jan 19, 2016 9:50 am

Here is your build file. YOU have selected the wrong host:

Engine=SAPIEN PowerShell V2 Host (Command line) x64

You must use a forms host

Here is the whole file you sent:
  1. [Package]
  2.  
  3. Output=PcDeploymentServices
  4.  
  5. IconFile=C:\Program Files\SAPIEN Technologies, Inc\PowerShell Studio 2015\ScriptPackage.ico
  6.  
  7. Manifest=
  8.  
  9. ManifestType=1
  10.  
  11. STA=0
  12.  
  13. GenerateConfigFile=1
  14.  
  15. Password2=
  16.  
  17. Username=
  18.  
  19. Engine=SAPIEN PowerShell V2 Host (Command line) x64
  20.  
  21. UseRunAs=0
  22.  
  23. PFX=
  24.  
  25. TimeStamp=http://timestamp.globalsign.com/scripts/timstamp.dll
  26.  
  27. PFXPassword2=
  28.  
  29. RestrictUser=
  30.  
  31. RestrictMAC=
  32.  
  33. RestrictMachine=
  34.  
  35. RestrictDomain=
  36.  
  37. RestrictInstance=0
  38.  
  39. RestrictedOS=
  40.  
  41. FileVersion=1.0.0.1
  42.  
  43. ProductVersion=1.0.0.1
  44.  
  45. ProductName=PcDeploymentServices
  46.  
  47. Description=
  48.  
  49. Company=
  50.  
  51. Copyright=
  52.  
  53. InternalName=
  54.  
  55. OriginalName=PcDeploymentServices
  56.  
  57. Comments=
  58.  
  59. AutoIncrementVersion=0

'

jvierra
Posts: 14014
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: FolderBrowserModernDialog not working in compiled .exe

Post by jvierra » Tue Jan 19, 2016 10:01 am

tirwin@iot.in.gov wrote:Moving all the files to another folder and then recompiling worked. Thanks
I didn't see this until I resynched the forum.

It is likely you have a corrupt folder or disk structure. I would stop for some diagnostics.

User avatar
tirwin@iot.in.gov
Posts: 40
Joined: Mon Oct 19, 2015 5:45 am

Re: FolderBrowserModernDialog not working in compiled .exe

Post by tirwin@iot.in.gov » Wed Jan 20, 2016 5:59 am

Yes, Thanks for your support jvierra, I was having the same sync problems yesterday. I got it going thanks for your help.

Locked