Skip to content

Commit

Permalink
Dev 2.0 (#8)
Browse files Browse the repository at this point in the history
* 修改名称

* show lvproj version in file

* 添加更多格式的 file 信息

* reorder tab-order

* 安装可选权限

* #4 暂时不改变方案,够用了。加入SigCheck 为了后面可以自动检测exe 是32bit还是64bit

* UI fix

* #5

* 测试 Post-Install Custom Action.vi

* Update README.md

* Update README.md

* fix bug. show file path as it should be.

* fix bug in RegisterPatchGenerator.vi

* try to set labview selector as default application

* option to open reg patch file

* reorg code

* Update README.md

* update vipb

* fix reg issue

* update it

* build vipb

* Update README.md

* update Post-Install Custom Action.vi

* Update README.md

* test #5

* #5
  • Loading branch information
nevstop authored Nov 2, 2022
1 parent b198c53 commit 43fe3ce
Show file tree
Hide file tree
Showing 50 changed files with 475 additions and 409 deletions.
154 changes: 154 additions & 0 deletions Application/application.lvclass

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions Application/application.lvlib
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version='1.0' encoding='UTF-8'?>
<Library LVVersion="14008000">
<Property Name="NI.Lib.Icon" Type="Bin">&amp;!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!(]!!!*Q(C=\&gt;8"=&gt;MQ%!8143;(8.6"2CVM#WJ",7Q,SN&amp;(N&lt;!NK!7VM#WI"&lt;8A0$%94UZ2$P%E"Y.?G@I%A7=11U&gt;M\7P%FXB^VL\`NHV=@X&lt;^39O0^N(_&lt;8NZOEH@@=^_CM?,3)VK63LD-&gt;8LS%=_]J'0@/1N&lt;XH,7^\SFJ?]Z#5P?=F,HP+5JTTF+5`Z&gt;MB$(P+1)YX*RU2DU$(![)Q3YW.YBG&gt;YBM@8'*\B':\B'2Z&gt;9HC':XC':XD=&amp;M-T0--T0-.DK%USWS(H'2\$2`-U4`-U4`/9-JKH!&gt;JE&lt;?!W#%;UC_WE?:KH?:R']T20]T20]\A=T&gt;-]T&gt;-]T?/7&lt;66[UTQ//9^BIHC+JXC+JXA-(=640-640-6DOCC?YCG)-G%:(#(+4;6$_6)]R?.8&amp;%`R&amp;%`R&amp;)^,WR/K&lt;75?GM=BZUG?Z%G?Z%E?1U4S*%`S*%`S'$;3*XG3*XG3RV320-G40!G3*D6^J-(3D;F4#J,(T\:&lt;=HN+P5FS/S,7ZIWV+7.NNFC&lt;+.&lt;GC0819TX-7!]JVO,(7N29CR6L%7,^=&lt;(1M4#R*IFV][.DX(X?V&amp;6&gt;V&amp;G&gt;V&amp;%&gt;V&amp;\N(L@_Z9\X_TVONVN=L^?Y8#ZR0J`D&gt;$L&amp;]8C-Q_%1_`U_&gt;LP&gt;WWPAG_0NB@$TP@4C`%`KH@[8`A@PRPA=PYZLD8Y!#/7SO!!!!!!</Property>
<Property Name="NI.Lib.SourceVersion" Type="Int">335577088</Property>
<Property Name="NI.Lib.Version" Type="Str">1.0.0.0</Property>
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
<Item Name="application.lvclass" Type="LVClass" URL="../application.lvclass"/>
</Library>
Binary file added Application/application.vi
Binary file not shown.
Binary file added Application/support/DEF-LabVIEW INFO.ctl
Binary file not shown.
Binary file added Application/support/DEF-RegExt.ctl
Binary file not shown.
Binary file not shown.
Binary file added Application/support/GetLabVIEWInfos.vi
Binary file not shown.
Binary file added Application/support/IniPath.vi
Binary file not shown.
Binary file added Application/support/Symbol/CreateSymbolInDir.vi
Binary file not shown.
Binary file not shown.
Binary file added Application/support/Symbol/FindSymbol.vi
Binary file not shown.
Binary file added Application/support/Symbol/FindSymbolInDir.vi
Binary file not shown.
Binary file added Application/support/_GetLVInfo.vi
Binary file not shown.
Binary file added Application/support/_lvVersion - xml.vi
Binary file not shown.
Binary file added Application/support/isRootDir.vi
Binary file not shown.
Empty file added Build/place holder.txt
Empty file.
281 changes: 153 additions & 128 deletions Multi-LabVIEW Selector.lvproj → LabVIEW-Version-Selector.lvproj

Large diffs are not rendered by default.

108 changes: 53 additions & 55 deletions Multi LabVIEW Selector.vipb → LabVIEW-Version-Selector.vipb

Large diffs are not rendered by default.

66 changes: 32 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,40 @@
Multi-LabVIEW Selector
LabVIEW Version Selector
===================================

Automatically Select the correct LabVIEW version to open LabVIEW files.
Automatically Select the correct LabVIEW version to open LabVIEW files.

## Attention
Related filetypes of: `.lvproj`/`.lvlib`/`.lvclass`/`.llb`/`.vi`/`.vit`/`.ctl`/`.xctl`/`.lvlibp`/`.lvtest`

1. You need to run VIPM as administor, bucause the installing process need to change windows registry。
2. Currently, you need to associate related file extensions to the build exe manually. The built exe locates here: [LabVIEW]\project\_NEVSTOP\Multi-LabVIEW Selector\Build.

After `LabVIEW Version Selector.exe` is used to open file of those types, you have a chance to see the file's saved version and option to choose LabVIEW version to be used.

LabVIEW in these folders will be discovered:
- C:\Program Files\National Instruments
- C:\Program Files (x86)\National Instruments
- D:\Program Files\National Instruments
- D:\Program Files (x86)\National Instruments
- E:\Program Files\National Instruments
- E:\Program Files (x86)\National Instruments
- F:\Program Files\National Instruments
- F:\Program Files (x86)\National Instruments

![image](https://user-images.githubusercontent.com/8196752/198526226-0ca079f3-e9c1-41de-b14c-12358854a554.png)

Related filetypes of:
- .lvproj
- .lvlib
- .lvclass
- .llb
- .vi
- .vit
- .ctl
- .xctl
- .lvlibp
- .lvsc
- .lvtest
- .lvr
- .lvrbt
- .lvvect

## Dependencies
## Development Envrionment

- LabVEW 2014
- VIPM 2020.3

### Dependencies

- [OpenG Libraries](http://sine.ni.com/nips/cds/view/p/lang/zhs/nid/209027)
- [JKI State Machine](https://github.com/JKISoftware/JKI-State-Machine)
- [JKI State Machine](https://github.com/JKISoftware/JKI-State-Machine)

## Attention

1. Please follow the instruction of post-installation action to associate related file extensions with the built exe. If you have concern on the registry operation , another opition is to manually import the install.reg file after check on it.

<table><tr>
<td><img src=https://user-images.githubusercontent.com/8196752/198864067-595e8bd5-96bf-4269-9d45-c72a9979ebca.png width=400px /></td>
<td><img src=https://user-images.githubusercontent.com/8196752/198864102-0ac8998f-77b5-4925-8ffa-20fb20ebb6bd.png width=400px /></td>
</tr></table>

2. LabVIEW in these folders will be discovered:
- C:\Program Files\National Instruments
- C:\Program Files (x86)\National Instruments
- D:\Program Files\National Instruments
- D:\Program Files (x86)\National Instruments
- E:\Program Files\National Instruments
- E:\Program Files (x86)\National Instruments
- F:\Program Files\National Instruments
- F:\Program Files (x86)\National Instruments

Binary file removed RegisterExt.vi
Binary file not shown.
75 changes: 75 additions & 0 deletions Sigcheck/Eula.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
Sysinternals Software License Terms
These license terms are an agreement between Sysinternals (a wholly owned subsidiary of Microsoft Corporation) and you. Please read them. They apply to the software you are downloading from technet.microsoft.com/sysinternals, which includes the media on which you received it, if any. The terms also apply to any Sysinternals
* updates,
* supplements,
* Internet-based services,
* and support services
for this software, unless other terms accompany those items. If so, those terms apply.
BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE.
If you comply with these license terms, you have the rights below.

Installation and User Rights

You may install and use any number of copies of the software on your devices.

Scope of License

The software is licensed, not sold. This agreement only gives you some rights to use the software. Sysinternals reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not
* work around any technical limitations in the software;
* reverse engineer, decompile or disassemble the software, except and only to the extent that applicable law expressly permits, despite this limitation;
* make more copies of the software than specified in this agreement or allowed by applicable law, despite this limitation;
* publish the software for others to copy;
* rent, lease or lend the software;
* transfer the software or this agreement to any third party; or
* use the software for commercial software hosting services.

Sensitive Information

Please be aware that, similar to other debug tools that capture “process state” information, files saved by Sysinternals tools may include personally identifiable or other sensitive information (such as usernames, passwords, paths to files accessed, and paths to registry accessed). By using this software, you acknowledge that you are aware of this and take sole responsibility for any personally identifiable or other sensitive information provided to Microsoft or any other party through your use of the software.

Documentation

Any person that has valid access to your computer or internal network may copy and use the documentation for your internal, reference purposes.

Export Restrictions

The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the software. These laws include restrictions on destinations, end users and end use. For additional information, see www.microsoft.com/exporting .

Support Services

Because this software is "as is," we may not provide support services for it.

Entire Agreement

This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services.

Applicable Law

United States . If you acquired the software in the United States , Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles. The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort.
Outside the United States . If you acquired the software in any other country, the laws of that country apply.

Legal Effect

This agreement describes certain legal rights. You may have other rights under the laws of your country. You may also have rights with respect to the party from whom you acquired the software. This agreement does not change your rights under the laws of your country if the laws of your country do not permit it to do so.

Disclaimer of Warranty

The software is licensed "as-is." You bear the risk of using it. Sysinternals gives no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this agreement cannot change. To the extent permitted under your local laws, sysinternals excludes the implied warranties of merchantability, fitness for a particular purpose and non-infringement.

Limitation on and Exclusion of Remedies and Damages

You can recover from sysinternals and its suppliers only direct damages up to U.S. $5.00. You cannot recover any other damages, including consequential, lost profits, special, indirect or incidental damages.
This limitation applies to
* anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and
* claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law.

It also applies even if Sysinternals knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages.
Please note: As this software is distributed in Quebec , Canada , some of the clauses in this agreement are provided below in French.
Remarque : Ce logiciel étant distribué au Québec, Canada, certaines des clauses dans ce contrat sont fournies ci-dessous en français.
EXONÉRATION DE GARANTIE. Le logiciel visé par une licence est offert « tel quel ». Toute utilisation de ce logiciel est à votre seule risque et péril. Sysinternals n'accorde aucune autre garantie expresse. Vous pouvez bénéficier de droits additionnels en vertu du droit local sur la protection dues consommateurs, que ce contrat ne peut modifier. La ou elles sont permises par le droit locale, les garanties implicites de qualité marchande, d'adéquation à un usage particulier et d'absence de contrefaçon sont exclues.
LIMITATION DES DOMMAGES-INTÉRÊTS ET EXCLUSION DE RESPONSABILITÉ POUR LES DOMMAGES. Vous pouvez obtenir de Sysinternals et de ses fournisseurs une indemnisation en cas de dommages directs uniquement à hauteur de 5,00 $ US. Vous ne pouvez prétendre à aucune indemnisation pour les autres dommages, y compris les dommages spéciaux, indirects ou accessoires et pertes de bénéfices.
Cette limitation concerne :
tout ce qui est relié au logiciel, aux services ou au contenu (y compris le code) figurant sur des sites Internet tiers ou dans des programmes tiers ; et
les réclamations au titre de violation de contrat ou de garantie, ou au titre de responsabilité stricte, de négligence ou d'une autre faute dans la limite autorisée par la loi en vigueur.
Elle s'applique également, même si Sysinternals connaissait ou devrait connaître l'éventualité d'un tel dommage. Si votre pays n'autorise pas l'exclusion ou la limitation de responsabilité pour les dommages indirects, accessoires ou de quelque nature que ce soit, il se peut que la limitation ou l'exclusion ci-dessus ne s'appliquera pas à votre égard.
EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous pourriez avoir d'autres droits prévus par les lois de votre pays. Le présent contrat ne modifie pas les droits que vous confèrent les lois de votre pays si celles-ci ne le permettent pas.
Binary file added Sigcheck/sigcheck.exe
Binary file not shown.
Binary file added Sigcheck/sigcheck64.exe
Binary file not shown.
Binary file added Sigcheck/sigcheck64a.exe
Binary file not shown.
Binary file added _obsolete/Associate a File Extension.vi
Binary file not shown.
Binary file added _obsolete/LoadIniRegExtSession.vi
Binary file not shown.
Binary file added _obsolete/RegisterExt.vi
Binary file not shown.
Binary file added _obsolete/SaveIniRegExtSession.vi
Binary file not shown.
Binary file modified _vip_support/Post-Install Custom Action.vi
Binary file not shown.
Binary file modified _vip_support/Post-Uninstall Custom Action.vi
Binary file not shown.
192 changes: 0 additions & 192 deletions application.lvclass

This file was deleted.

Binary file removed application.vi
Binary file not shown.
Binary file added cmd/OSArchitecture.vi
Binary file not shown.
Binary file added cmd/Open Explorer Window.vi
Binary file not shown.
Binary file added cmd/RegPatchGenerator.vi
Binary file not shown.
Binary file added cmd/SigCheck.vi
Binary file not shown.
Binary file added cmd/assoc.vi
Binary file not shown.
Binary file removed control/DEF-LabVIEW INFO.ctl
Binary file not shown.
Binary file removed control/DEF-RegExt.ctl
Binary file not shown.
Binary file removed support/Associate a File Extension.vi
Binary file not shown.
Binary file removed support/GetLabVIEWInfos.vi
Binary file not shown.
Binary file removed support/GetOSArchitecture.vi
Binary file not shown.
Binary file removed support/LoadIniRegExtSession.vi
Binary file not shown.
Binary file removed support/SaveIniRegExtSession.vi
Binary file not shown.
Binary file removed support/Symbol/CreateSymbolInDir.vi
Binary file not shown.
Binary file removed support/Symbol/FindSymbol.vi
Binary file not shown.
Binary file removed support/Symbol/FindSymbolInDir.vi
Binary file not shown.
Binary file removed support/_GetLVInfo.vi
Binary file not shown.
Binary file removed support/_IniPath.vi
Binary file not shown.
Binary file removed support/isRootDir.vi
Binary file not shown.

0 comments on commit 43fe3ce

Please sign in to comment.