Search found 6973 matches

by Alexander Riedel
Thu Jun 27, 2019 5:45 am
Forum: Windows PowerShell
Topic: MSI - Service - Load Group
Replies: 3
Views: 590

Re: MSI - Service - Load Group

Can you please specify if you need documentation on the packager or the MSI builder or on the service group thing in particular?
by Alexander Riedel
Mon Jun 24, 2019 3:28 am
Forum: PowerShell Studio
Topic: Command line parameters & Windows Forms in PSS
Replies: 8
Views: 1397

Re: Command line parameters & Windows Forms in PSS

PSF files are basically similar to project files in Visual Studio, which I know you are familiar with. At the end, a .PS1 file is always generated. You can look at that by using the Export function on the ribbon. The method of using $EngineArgs applies to anything generated out of PSF files as well....
by Alexander Riedel
Thu Jun 20, 2019 12:08 pm
Forum: PowerShell GUIs
Topic: Display Combobox entries
Replies: 5
Views: 282

Re: Display Combobox entries

Not knowing what the rest of your UI is like, the obvious way is to use a list ctrl rather than a combo box.
A combo box is generally used to allow a user to choose from a preset number of values for settings or further processing rather than to display results.
by Alexander Riedel
Thu Jun 20, 2019 12:05 pm
Forum: PowerShell GUIs
Topic: Display Combobox entries
Replies: 5
Views: 282

Re: Display Combobox entries

[Moved by moderator]
by Alexander Riedel
Thu Jun 20, 2019 12:52 am
Forum: Windows PowerShell
Topic: HowTo: Path to MSI application files and getting them to execute?
Replies: 5
Views: 969

Re: HowTo: Path to MSI application files and getting them to execute?

If the current folder is NOT where your exe is, look at the GetScriptPath snippet.
by Alexander Riedel
Thu Jun 20, 2019 12:50 am
Forum: Windows PowerShell
Topic: HowTo: Path to MSI application files and getting them to execute?
Replies: 5
Views: 969

Re: HowTo: Path to MSI application files and getting them to execute?

Just use a relative path. If your batch file is in the same location as the executable, just use
./myscript.bat

Nothing complicated about that
by Alexander Riedel
Wed Jun 12, 2019 11:25 pm
Forum: PowerShell GUIs
Topic: Clarification on RunAs and SetExecution
Replies: 2
Views: 239

Re: Clarification on RunAs and SetExecution

The execution policy on your machine applies only to scripts run directly from a PowerShell console (or the ISE). Other hosts may not evaluate this policy or not execute your code as a "script file". Without any additional information we cannot know what "the exe" is. If it runs in PowerShell Studio...
by Alexander Riedel
Wed Jun 12, 2019 9:41 am
Forum: PowerShell Studio
Topic: Problem when program is run from EXE vs IDE
Replies: 2
Views: 1524

Re: Problem when program is run from EXE vs IDE

Format-table is a tricky cmdlet. It uses the console width to determine sizes. Since the output in the IDE is piped into a window we artificially set that to "very wide" (I do not know the exact width now). In an exe, assuming it is packaged as a console app, it uses the console width. In an exe pac...
by Alexander Riedel
Wed Jun 12, 2019 7:46 am
Forum: PowerShell Studio
Topic: Compiled EXE InvocationInfo.MyCommand.Name has part of full path when hashtag (#) in folder path
Replies: 1
Views: 1166

Re: Compiled EXE InvocationInfo.MyCommand.Name has part of full path when hashtag (#) in folder path

The reason for this is that the .NET framework mangles the file name if a # character is in it. Ran it quickly in the debugger and I see that Application.ExecutablePath delivers something like: C:\Temp\InvocationInfo\#1/x64/PoshAppHostV5.exe For some reason it decides mid name to switch from \ to / ...
by Alexander Riedel
Wed Jun 12, 2019 7:10 am
Forum: PowerShell Studio
Topic: Display Scaling
Replies: 1
Views: 1206

Re: Display Scaling

It's actually Microsoft Windows Forms and yes, it is always a struggle to develop user interfaces that work on multiple resolutions, magnification factors and display sizes. Unfortunately that is not an issue limited to Windows Forms or PowerShell Studio. Maybe you can share a screenshot of your set...