==We need to store the addin file separately== Just place it after the section reading the file
Modify Script File
Add automatic modification of addin file path
1 2 3 4 5 6 7 8 9 10 11
Section change StrCpy$1"<Assembly>" StrCpy$1"$1$INSTDIR" StrCpy$1"$1\bin\De··bug\Panel.dll</Assembly>" Push <Assembly>name.dll</Assembly> #text to be replaced Push$1#replace with Pushall#replace all occurrences Pushall#replace all occurrences Push C:\ProgramData\Autodesk\Revit\Addins\2016\name.addin #file to replace in Call AdvReplaceInFile SectionEnd
In NSIS $1 represents a string, where the top three lines are assembling the target path, Push <Assembly>name.dll</Assembly> push statement finds and replaces the target statement 2. Add function