MSI Build inserts comment on top and indents all code every build

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
mycosis
Posts: 2
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Wed Apr 18, 2018 11:14 pm

MSI Build inserts comment on top and indents all code every build

Post by mycosis »

Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.172
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.16299.0

Hi,

I have a minor annoyance where every time I build my code to a MSI file, the bilding process indents my whole code and inserts a new header even though it updates my existing one.
Any help disabling this would be much apreciated.

Original
Image

Prompted for reload
Image

Code "broken" with indents and new top comment
Image

Log from build
Image

Where i click to build
Image

Build settings
Image

User avatar
brittneyr
Site Admin
Posts: 482
Joined: Thu Jun 01, 2017 7:20 am

Re: MSI Build inserts comment on top and indents all code every build

Post by brittneyr »

We are currently looking into this and will get back to you soon.
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
Olga_B
Site Admin
Posts: 147
Joined: Mon May 15, 2017 9:06 am

Re: MSI Build inserts comment on top and indents all code every build

Post by Olga_B »

As a work around you can build MSI from Sapien Script Packager Tool.
From Deploy/Installer click Settings
Sapien Script Packager is open
Click Build MSI from Home/Project

User avatar
mycosis
Posts: 2
Joined: Wed Apr 18, 2018 11:14 pm

Re: MSI Build inserts comment on top and indents all code every build

Post by mycosis »

Olga_B wrote:
Mon Feb 10, 2020 4:31 pm
As a work around you can build MSI from Sapien Script Packager Tool.
Thanks! This works, but now I need another workaround :)
For me to be able to build i have to specify full path for the bin directory instead of relative to the project.
Guessing this is also a bug.

User avatar
brittneyr
Site Admin
Posts: 482
Joined: Thu Jun 01, 2017 7:20 am

Re: MSI Build inserts comment on top and indents all code every build

Post by brittneyr »

We are looking into the path issue you mentioned, but I don't have any updates on that.

As for the comments and indenting of code, this has been fixed and will be in the next service release of PowerShell Studio.
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
Alexander Riedel
Posts: 7377
Joined: Tue May 29, 2007 4:43 pm

Re: MSI Build inserts comment on top and indents all code every build

Post by Alexander Riedel »

Sorry to jump in here. First time I hear about the bin folder being a problem.
Whats the error exactly you are getting?
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
brittneyr
Site Admin
Posts: 482
Joined: Thu Jun 01, 2017 7:20 am

Re: MSI Build inserts comment on top and indents all code every build

Post by brittneyr »

Please try service build 5.7.173 and let me know if it resolves the comments and indenting of code.
Brittney Ryn
SAPIEN Technologies, Inc.