The rules are very simple. Better said: There is only one simple rule:
No hardcoded folder names
Directly is clear and easy to be detected:
One candidate is shortcuts.Script.
Usually the shortcuts are written correctly because the .au3 program uses environment variables to place the shortcuts.
But when you e.g. want to have a 'SendTo' shortcut, it is created in
..\Documents and Settings\Default User\SendTo
How to work:
- To create shortcuts, use buildModel (see the Help button in the buildModel.Script interface)
- For folder use the localized names which are found in ProjectInfo.ini
IniRead,"%ProjectInfo%","TargetStrings","sProgram_Files","%progs%" CopyFile,....,%Target%\%progs%Similar with the use of %PEprograms%. It brings a hardcoded 'programs':
This has to be replaced by %PEDrive%\%progs% (from the above snippet)
Not a rule, but a recommandation:
For hive names you should use the nativeEX standard names:
WB-Software, WB-Setup, WB-Default
Do not use the Variables
Instead of hardcoding the target windows directory as 'I386', use the variable %nExWin%.
The latest version of nativeEX plays a little bit with logos.
At every .Script which is fundamental for nativeEX, you can find the 'exec' logo in the lower right.
A script which is adapted for nativeEX or is written fullfilling the above rules, has the start 'e' in the lower left.