Hello,

I made an RPM that needs an ini-File as parameter or simply to be read in the same folder as the rpm is.

Description:
The Software included is a windows-app combined with wine. this windows app can be installed via netinstall, where it needs an Inifile, that is in the same folder as the setup.exe. Here is no Problem.
But since this whole installation is packed with wine into a RPM, i want to have the possibility, to adjust the Inifile as well before installing. So the goal is to kopy a folder (for example "NetInstall"), that contains the rpm and the Inifile, to the users desktops. There they will be installed automatically.

Now the Problem is that when installing an RPM (for example with "rpm -Uvh asdf") the working directory seems to be "/", where the Inifile is not locatet. So it can not be found.

Is there a way to tell the RPM-installation to search in the same path as the RPM?

Else, can a rpm installation be startet with a textfile as parameter?
example: "rpm -Uvh setup.rpm -Inifile.ini"