in Education by
Inno Setup is a nice easy to use installer. It is rated high in this stackoverflow question. I have a need to install a plugin to a folder relative to the installation folder of a 3rd Party application. It isn't obvious from the docs how to do this. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
You can find the answer to how to optionally install a file using a registry entry in the documentation and in sample code but it may not be obvious so here is some example script snippets using an Adobe Premiere Plugin as an example: The keys steps are: 1) use the Check: parameter 2) Write a function that calls RegQueryStringValue and parse the path to construct the relative plugin folder destination 3) use {code:} to call a function to return the destination folder // // Copy my plugin file to the Premiere Plugin folder, but only if Premiere is installed. // [Files] Source: "C:\sourceFiles\myplugin.prm"; Check: GetPremierePluginDestination; DestDir: "{code:PluginDestination}"; Flags: ignoreversion overwritereadonly [Code] var sPluginDest : String; // // Search for the path where Premiere Pro was installed. Return true if path found. // Set variable to plugin folder // function GetPremierePluginDestination(): Boolean; var i: Integer; len: Integer; begin sPluginDest := ''; RegQueryStringValue( HKLM, 'SOFTWARE\Adobe\Premiere Pro\CurrentVersion', 'Plug-InsDir', sPluginDest ); len := Length(sPluginDest); if len > 0 then begin i := len; while sPluginDest[i] <> '\' do begin i := i-1; end; i := i+1; Delete(sPluginDest, i, Len-i+1); Insert('Common', sPluginDest, i); end; Result := len > 0; end; // // Use this function to return path to install plugin // function PluginDestination(Param: String) : String; begin Result := sPluginDest; end; I'm not a Pascal programmer so any suggestions on making GetPremiereDestination more efficient are welcome.

Related questions

0 votes
    Basically what I need is an automated way to update the product version number in WiX (3.0 with ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    Basically what I need is an automated way to update the product version number in WiX (3.0 with ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    Basically what I need is an automated way to update the product version number in WiX (3.0 with ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    I'm new to Python and I want to install some packages with pip. But pip install unroll gives me: Command " ... How to solve this? Select the correct answer from above options...
asked Jan 25, 2022 in Education by JackTerrance
0 votes
    I have a set of oil wells compiled in the panda's data frame. It looks like this: wells = pd.DataFrame({'date ... -01-01 FIELDZ 10.8 Select the correct answer from above options...
asked Jan 19, 2022 in Education by JackTerrance
0 votes
    If I want to create the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MyApp with ... Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    If I want to create the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MyApp with ... Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    If I want to create the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MyApp with ... Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    I have a registry value that I set to 1 during installation. What I want to achieve is that ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    I have an XML file which is structured as follows: place1 location1 place2 location2 place3 location3 These ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 2, 2022 in Education by JackTerrance
0 votes
    How to install a Custom Jenkins Plugin or a Version of Plugin Not available in Jenkins Update Center?...
asked Jul 17, 2021 in Technology by JackTerrance
0 votes
    When I use Build->Publish Web Site in Visual Studio 2008, most of the time it compiles the site, ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    I'm trying to verify when the OAB (Offline Address Book) root folder for a new OAB is created ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 25, 2022 in Education by JackTerrance
0 votes
    I am getting an 'access is denied' error when I attempt to delete a folder that is not empty. I used the ... that is not empty? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    Define: (i)copying file and folder (ii)moving file and folder Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
...