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.
This topic is 8 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: FolderBrowserModernDialog not working in compiled .exe

Post by jvierra »

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. Output=PcDeploymentServices
  3. IconFile=C:\Program Files\SAPIEN Technologies, Inc\PowerShell Studio 2015\ScriptPackage.ico
  4. Manifest=
  5. ManifestType=1
  6. STA=0
  7. GenerateConfigFile=1
  8. Password2=
  9. Username=
  10. Engine=SAPIEN PowerShell V2 Host (Command line) x64
  11. UseRunAs=0
  12. PFX=
  13. TimeStamp=http://timestamp.globalsign.com/scripts/timstamp.dll
  14. PFXPassword2=
  15. RestrictUser=
  16. RestrictMAC=
  17. RestrictMachine=
  18. RestrictDomain=
  19. RestrictInstance=0
  20. RestrictedOS=
  21. FileVersion=1.0.0.1
  22. ProductVersion=1.0.0.1
  23. ProductName=PcDeploymentServices
  24. Description=
  25. Company=
  26. Copyright=
  27. InternalName=
  28. OriginalName=PcDeploymentServices
  29. Comments=
  30. AutoIncrementVersion=0

'
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: FolderBrowserModernDialog not working in compiled .exe

Post by jvierra »

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
Last visit: Tue Mar 14, 2017 9:54 am

Re: FolderBrowserModernDialog not working in compiled .exe

Post by tirwin@iot.in.gov »

Yes, Thanks for your support jvierra, I was having the same sync problems yesterday. I got it going thanks for your help.
This topic is 8 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked